PasteRack.org | ||
Paste # 35548 | ||
2015-05-22 15:31:51 | ||
Fork as a new paste. | ||
Paste viewed 119 times. | ||
Tweet | ||
Embed: | ||
#lang curly-fn racket (require alexis/collection math/number-theory) (define fizzbuzz (map (match-lambda [(? #{divides? 15}) 'fizzbuzz] [(? #{divides? 5}) 'fizz] [(? #{divides? 3}) 'buzz] [n n]) (in-naturals))) (for-each displayln (take 100 fizzbuzz))