box-o-sand/lyahfgg/boombangs.hs

2 lines
70 B
Haskell
Raw Normal View History

2014-09-21 10:51:36 +00:00
boomBangs xs = [if x < 10 then "BOOM!" else "BANG!" | x <- xs, odd x]