translating gofer into lambda expressions 
Author Message
 translating gofer into lambda expressions

hello

I don't really understand how to translate Gofer code into lambda
expressions and am wondering if anyone can help.

here are some examples:
plus a b = a + b
sumsquares x y = (square x) + (square y) where square a = a * a
sum n = if n == 1 then 1 else n + sum (n-1)

any pointers or help would be much appreciated

Gareth
<><



Sun, 31 Oct 2004 23:04:48 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. translate mathematics expressions to lisp expressions

2. CSP and lambda-expression

3. Evaluate of lambda expressions in lisp-like language

4. lambda calculus expression

5. lambda expressions and let/letrec

6. Converting a (quote)d expression to a lambda procedure

7. Trouble translating a C expression to Ada

8. lambda expressions

9. print statement in lambda expression

10. Translate XSLT/XPath-patterns into regular expressions?

11. lambda expression

12. LAMBDA-EXPRESSION-P ?

 

 
Powered by phpBB® Forum Software