fizzbuzz n
= [ fb
| x
<- [ 1 .. n
] , fb
<- [ f
++ b
| f
<- [ if x `
mod `
3 == 0 then "fizz" else "" ] , b
<- [ if x `
mod `
5 == 0 then "buzz" else "" ] , f
<- [ if ( f
== "" ) && ( b
== "" ) then show x
else f
] ] ]
putHeadLn xs
main = do putHeadLn $ fizzbuzz 20
Zml6emJ1enogbiA9IFsgZmIgfCB4ICA8LSBbIDEgLi4gbiBdLCBmYiA8LSBbIGYgKysgYiB8IGYgPC0gWyBpZiB4IGBtb2RgIDMgPT0gMCB0aGVuICJmaXp6IiBlbHNlICIiIF0sIGIgPC0gWyBpZiB4IGBtb2RgIDUgPT0gMCB0aGVuICJidXp6IiBlbHNlICIiIF0sIGYgPC0gWyBpZiAoZiA9PSAiIikgJiYgKGIgPT0gIiIpIHRoZW4gc2hvdyB4IGVsc2UgZiBdIF0gXQoKcHV0SGVhZExuIHhzCiAgICB8IChsZW5ndGggeHMpID4gMCA9IGRvIHsgcHV0U3RyTG4gJCBoZWFkIHhzIDsgcHV0SGVhZExuICQgdGFpbCB4cyB9CiAgICB8IG90aGVyd2lzZSAgICAgICA9IGRvIHJldHVybiAoKQoKbWFpbiA9IGRvIHB1dEhlYWRMbiAkIGZpenpidXp6IDIw