Skip to content

Instantly share code, notes, and snippets.

@jumboly
Last active October 3, 2015 04:58
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 jumboly/2395029 to your computer and use it in GitHub Desktop.
Save jumboly/2395029 to your computer and use it in GitHub Desktop.
FizzBuzz 2012/04/16
(use srfi-1)
(define (fz n)
(cond
((= 0 (mod n 15)) 'FizzBuzz)
((= 0 (mod n 3)) 'Fizz)
((= 0 (mod n 5)) 'Buzz)
(else n)))
(define (fizzbuzz n)
(map fz (iota n 1)))
(fizzbuzz 100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment