[comp.lang.functional] Request for Code

carroll@udel.edu (Mark Carroll <MC>) (07/16/90)

Hello all!

I've recently become interested in the idea of functional programming. I
came across the ideas during an independent study in Object-oriented 
programming, and was fascinated by the idea of pure functional programming.
Unfortunately, my book budget is very low, and I'm temporarily cut off from 
decent library access, so I've been learning from some difficult sources - 
the Backus Turing paper, the Haskell language report, and the reference 
manual for SML of New Jersey. Due to this rather dreadful little collection 
of sources, I'm having a bit of a hard time wrapping my mind around some 
pretty basic features of functional programming. (My basic problem is that 
having been brought up on Pascal and C, I can't quite understand how to
handle history without assignments. On a theoretical level, I do understand
things like streams with lazy evaluation, but I just can't quite see how 
I'd do it in code...)

I'm posting because I'd like to see some decent, commented functional code,
to see how things are actually implemented.  I'd prefer code in SML or
Haskell, since those are the two languages that I have some slight 
familiarity with. If anyone has any code that they think might help me,
I would be infinitely grateful.

	Many thanks,

	  <MC>

--
|Mark Craig Carroll: <MC>  |"We the people want it straight for a change;
|Soon-to-be Grad Student at| cos we the people are getting tired of your games;
|University of Delaware    | If you insult us with cheap propaganda; 
|carroll@dewey.udel.edu    | We'll elect a precedent to a state of mind" -Fish