Article View: comp.lang.functional
Article #345Request for Code
From: Mark Carroll <MC>
Date: Mon, 16 Jul 1990 02:44
Date: Mon, 16 Jul 1990 02:44
31 lines
2010 bytes
2010 bytes
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
Technical Details
Message-ID:
<24666@nigel.udel.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!udel!carrollShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!udel!carroll From: carroll@udel.edu (Mark Carroll <MC>) Newsgroups: comp.lang.functional Subject: Request for Code Message-ID: <24666@nigel.udel.EDU> Date: 16 Jul 90 02:44:51 GMT Sender: usenet@ee.udel.EDU Reply-To: carroll@udel.edu (Mark Carroll <MC>) Distribution: usa Organization: University of Delaware Lines: 31