More functions for chapter 1
This commit is contained in:
parent
28f72bd513
commit
e16dfcf0e0
1
lyahfgg/boombangs.hs
Normal file
1
lyahfgg/boombangs.hs
Normal file
@ -0,0 +1 @@
|
||||
boomBangs xs = [if x < 10 then "BOOM!" else "BANG!" | x <- xs, odd x]
|
2
lyahfgg/hilarity.hs
Normal file
2
lyahfgg/hilarity.hs
Normal file
@ -0,0 +1,2 @@
|
||||
adjNounHilarity adjectives nouns =
|
||||
[adjective ++ " " ++ noun | adjective <- adjectives, noun <- nouns]
|
Loading…
Reference in New Issue
Block a user