Name

cons

Usage

builtin-function

Syntax

(cons item list)
(cons item delayed-expression)

Description

Returns a new list with specified first and rest elements.

user > (defun fibo (a b)
           (cons a (delay (fibo b (+ a b)))))
it: fibo
user > (take 15 (fibo 1 1))
it: (1 1 2 3 5 8 13 21 34 55 89 144 233 377 610)