box-o-sand/oldstuff/lyahfgg/ch01/boombangs.hs
2015-06-22 13:15:42 -05:00

2 lines
70 B
Haskell

boomBangs xs = [if x < 10 then "BOOM!" else "BANG!" | x <- xs, odd x]