Archiving a bunch of old stuff

This commit is contained in:
Dan Buch
2015-06-22 13:15:42 -05:00
parent a6ec1d560e
commit bd1abd8734
395 changed files with 1 additions and 76 deletions

3
oldstuff/lyahfgg/.ghci Normal file
View File

@@ -0,0 +1,3 @@
:set prompt "ghci> "
-- vim:filetype=haskell

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]

View File

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