chickadee » lazy-seq » make-lazy-seq

make-lazy-seq bodyprocedure

Returns a lazy-seq object. body is a thunk which will be called when the sequence is realized. It is expected to return one of the following things:

  • The empty list to signify the end of the sequence
  • A pair with the sequence's head in the car and a lazy-seq representing the sequence's tail in the cdr
  • Another lazy-seq which will be realized recursively when the sequence is realized