Organizing by chapter maybe?

This commit is contained in:
2014-09-21 06:51:56 -04:00
parent e16dfcf0e0
commit 3157d62682
3 changed files with 0 additions and 0 deletions

11
lyahfgg/ch01/baby.hs Normal file
View File

@@ -0,0 +1,11 @@
doubleMe x = x + x
doubleUs x y = doubleMe x + doubleMe y
doubleSmallNumber x = if x > 100
then x
else x*2
doubleSmallNumber' x = (if x > 100 then x else x*2) + 1
conanO'Brien = "It's a-me, Conan O'Brien!"

View File

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

2
lyahfgg/ch01/hilarity.hs Normal file
View File

@@ -0,0 +1,2 @@
adjNounHilarity adjectives nouns =
[adjective ++ " " ++ noun | adjective <- adjectives, noun <- nouns]