Re: [Hardhats-members] Lambda abstration in MUMPS

2005-12-01 Thread Greg Woodhouse
--- Kevin Toppenberg [EMAIL PROTECTED] wrote: Continuing... To say that we want functions to treated as values seems a different point than saying that to accomplish this would require the converse situation of values being treated the same as functions (i.e. requiring an entry in the

Re: [Hardhats-members] Lambda abstration in MUMPS

2005-11-30 Thread Kevin Toppenberg
Greg, I'm not following you. I'll probably just demonstrate my lack of computer science, but what the heck--I'm going to think out loud as I read this e-mail: On 11/27/05, Greg Woodhouse [EMAIL PROTECTED] wrote: A basic feature of functional languages is that functions are values, just like

[Hardhats-members] Lambda abstration in MUMPS

2005-11-27 Thread Greg Woodhouse
A basic feature of functional languages is that functions are values, just like numbers and strings, and they, too, can be returned from other functions. This is not possible in MUMPS (except in a limited way via indirection), so to illustrate the idea, it is necessary to invent some syntax. In

Re: [Hardhats-members] Lambda abstration in MUMPS

2005-11-27 Thread Maury Pepper
- Original Message - From: Greg Woodhouse [EMAIL PROTECTED] To: Hardhats hardhats-members@lists.sourceforge.net Sent: Sunday, November 27, 2005 2:55 AM Subject: [Hardhats-members] Lambda abstration in MUMPS S FACT = LAMBDA(N) {$S(N=0:1,1:$$FACT(N-1)) } make that: S FACT = LAMBDA

Re: [Hardhats-members] Lambda abstration in MUMPS

2005-11-27 Thread Greg Woodhouse
--- Maury Pepper [EMAIL PROTECTED] wrote: make that: Q $$FACT(N-1)*N Right. === Gregory Woodhouse [EMAIL PROTECTED] Interaction is the mind-body problem of computing. --Philip Wadler --- This SF.net email is