Name

as-lazy-list

Usage

builtin-function

Syntax

(as-lazy-list seq)

Description

Converts a sequence to a lazy list.

user 1 > (let z (as-lazy-list (series 5)))
it: (1 2 3 4 5)
user 2 > (first z)
it: 1
user 3 > (rest z)
it: (2 3 4 5)
user 4 > z
it: (1 2 3 4 5)
user 5 > (last z)
it: (5)
user 6 > z
it: (1 2 3 4 5)