Created
February 13, 2024 17:54
-
-
Save jwiegley/724abb87ba71dfed5a2c687e9cb1b245 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fbfn :: Int -> String | |
fbfn i = fromMaybe (show i) s | |
where | |
s = do | |
f <- fizz i | |
b <- buzz i | |
pure $ f <> " " <> b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment