| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
(cons 'a 'b) => (a . b) |
(cons (cons obj1 obj2) obj3).
Useful to put an entry at the head of an associative list.
(acons 'a 'b '((c . d))) => ((a . b) (c . d)) |
(make-list 5 #t) => (#t #t #t #t #t) |
(list 1 2 3) => (1 2 3) (list) => () |
list, but the last argument becomes cdr of the last pair.
SRFI-1 defines the same function with the name cons*.
(list* 1 2 3) => (1 2 . 3) (list* 1) => 1 |