Last active
May 28, 2018 07:20
-
-
Save benzap/45319637653c917910fbc43dc58fb1c8 to your computer and use it in GitHub Desktop.
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