cons -- r7rs Definition constructor;
Procedure variants:
((any any) -> (pair))
scheme:base -- (scheme base);scheme -- (scheme);(cons obj_1 obj_2)Returns a newly allocated pair whose car is
obj_1and whose cdr isobj_2. The pair is guaranteed to be different (in the sense ofeqv?) from every existing object.(cons 'a '()) ===> (a) (cons '(a) '(b c d)) ===> ((a) b c d) (cons "a" '(b c)) ===> ("a" b c) (cons 'a 3) ===> (a . 3) (cons '(a b) 'c) ===> ((a b) . c)
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.