[racket] Making a Racket function "recallable"

From: Eli Barzilay (eli at barzilay.org)
Date: Fri Feb 17 07:53:33 EST 2012

Two days ago, Phil Bewig wrote:
> You might be interested in SRFI-41
> <http://srfi.schemers.org/srfi-41/>.  One of the examples is an
> infinite stream of fibonacci numbers.

Or in lazy racket, where that example becomes very clear:

  #lang lazy
  (define fibs (list* 1 1 (map + fibs (cdr fibs))))

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

Posted on the users mailing list.