Skip to content

Instantly share code, notes, and snippets.

@alandipert
Created May 17, 2012 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alandipert/2719629 to your computer and use it in GitHub Desktop.
Save alandipert/2719629 to your computer and use it in GitHub Desktop.
Def fizzbuzz ≡ (eq0 ∘ strlen ∘ 2 → 1; 2) ∘
[1, strcat ∘ tl] ∘
[1, (eq0 ∘ 2 → ~'Fizz'; ~''), (eq0 ∘ 3 → ~'Buzz'; ~'')] ∘
[id, mod ∘ [id, ~3], mod ∘ [id, ~5]]
(αfizzbuzz ∘ iota):100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment