-- The output function can be basically anything, for example
-- PS.: `odd` returns true for odd numbers
boomsAndBangs listOfNumbers = [if x < 10 then "BOOM!" else "BANG!" | x <- listOfNumbers, odd x]
boomsAndBangs listOfNumbers = [if x < 10 then "BOOM!" else "BANG!" | x <- listOfNumbers, odd x]
boomsAndBangs listOfNumbers = [if x < 10 then "BOOM!" else "BANG!" | x <- listOfNumbers, odd x]