-
-
Save dom96/3c90c9be8ea28e1c680ff9e24d13959f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| let fizzbuzz2 = map( | |
| toSeq(1 .. 100), | |
| proc(x: int): string = | |
| if x mod 3 == 0 and x mod 5 == 0: | |
| "fizzbuzz" | |
| elif x mod 3 == 0: | |
| "fizz" | |
| elif x mod 5 == 0: | |
| "buzz" | |
| else: | |
| $x | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment