scheme recursive lambda

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-04-03T12:39:14Z Indexed on 2010/04/03 12:43 UTC
Read the original article Hit count: 360

Filed under:
|
|

Is there a way to have a recursive lambda expression in scheme without relying an external identifier?

I know you can have

(define fact (lambda (n) (if (= n 0) 1 (fact (- n 1))))

but it would be nice if fact wasn't hard coded in the lambda expression, it seems improper.

© Stack Overflow or respective owner

Related posts about Scheme

Related posts about lambda