Skip to content

Instantly share code, notes, and snippets.

@Radagaisus
Created January 6, 2013 00:35
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 Radagaisus/4464508 to your computer and use it in GitHub Desktop.
Save Radagaisus/4464508 to your computer and use it in GitHub Desktop.
k2v = (h) -> (do (k,v) -> (n) -> not (n % v) && k || '') for k,v of fizz: 3, buzz: 5
console.log ((fn(i) for fn in k2v()).join('') || i for i in [1..100]).join "\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment