Skip to content

Instantly share code, notes, and snippets.

@stoft
Last active November 15, 2015 08:41
Show Gist options
  • Save stoft/429349066132e3f816b5 to your computer and use it in GitHub Desktop.
Save stoft/429349066132e3f816b5 to your computer and use it in GitHub Desktop.
Attempts at short FizzBuzz
for i<-1..100,r=&(rem(&1, &2)==0 && &3),x=(r.(i,15,"FizzBuzz")||r.(i,5,"Buzz")||r.(i,3,"Fizz")||i),do: IO.write "#{x} "
@stoft
Copy link
Author

stoft commented Nov 15, 2015

Henrik managed a shorter one, well worth a look: https://gist.github.com/henrik/6ca434c0c5cb66ed29d7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment