Held: Wednesday, April 8, 1998
(let ((a 2))
(+ a
(let ((a 4)) a)
a))
> (define eh (let ((a 5)) (lambda () a))) > (let ((a 2)) (eh))
http://haskell.org/
. The
Gentle Introduction to Haskell at
http://haskell.org/tutorial/index.html
is a good place to start learning the stuff that I don't teach you.
f a represents
"apply f to a".
f a b is
"apply f to a; apply the resulting function to b".
f (a b).
a + b.
data keyword, using
the form
data Typename = Definition
fact n = if (n == 0) then 1 else n * (fact (n - 1)
fact :: Int -> Int
[4, 2, 4, 1]
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
Source text last modified Thu May 7 20:29:42 1998.
This page generated on Thu May 7 20:34:45 1998 by SiteWeaver.
Contact our webmaster at rebelsky@math.grin.edu