Last active
November 15, 2015 08:41
-
-
Save stoft/429349066132e3f816b5 to your computer and use it in GitHub Desktop.
Attempts at short FizzBuzz
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
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} " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Henrik managed a shorter one, well worth a look: https://gist.github.com/henrik/6ca434c0c5cb66ed29d7