Skip to content

Instantly share code, notes, and snippets.

@benzap
Last active May 28, 2018 07:20
Show Gist options
  • Save benzap/45319637653c917910fbc43dc58fb1c8 to your computer and use it in GitHub Desktop.
Save benzap/45319637653c917910fbc43dc58fb1c8 to your computer and use it in GitHub Desktop.
Fizzbuzz in fif langauge github.com/benzap/fif
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