Skip to content

Instantly share code, notes, and snippets.

@Zert
Created April 10, 2014 13:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Zert/10382771 to your computer and use it in GitHub Desktop.
[begin D3 = (N rem 3) == 0, D5 = (N rem 5) == 0, if not (D3 or D5) -> N; (D3 and D5) -> fizz_buzz; D3 -> fizz; D5 -> buzz end end || N <- lists:seq(1,30)].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment