Scheme Expert · Lesson 6

Lazy infinite sequences with SRFI-41 streams

Build infinite streams with define-stream and stream-cons, transform them lazily, write self-referential definitions, and rely on memoised forcing.

Lessons · Scheme Expert · Lesson 6 of 10

Lazy infinite sequences with SRFI-41 streams

Build infinite streams with define-stream and stream-cons, transform them lazily, write self-referential definitions, and rely on memoised forcing.

Illustration for Scheme
Build infinite streams with define-stream and stream-cons, transform them lazily, write self-referential definitions, and rely on memoised forcing.