Next: , Previous: , Up: lang   [Index]


1.15 Streams

The (vicare language-extensions streams) library implements streams; sometimes called “lazy lists”, streams are a sequential data structure containing elements computed only on demand. A stream is either null or is a pair with a stream in its cdr. Since elements of a stream are computed only when accessed, streams can be infinite. Once computed, the value of a stream element is cached in case it is needed again.