Fizzbuzz in fif langauge github.com/benzap/fif
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
fn fizz-buzz | |
*n <> setl | |
n 3 mod zero? | |
n 5 mod zero? and if "FizzBuzz" else | |
n 3 mod zero? if "Fizz" else | |
n 5 mod zero? if "Buzz" else | |
n | |
then then then | |
endfn | |
*fizz-buzz 1 101 range map println |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment