public
Description: Arc Lisp to C compiler
Home | Edit | New

ConsCells

Operations on cons cells are cons, car, cdr, is, isnt, len, pr, prn. On two cons cells, the ’is function returns t only if the compared cells are the same physical object, not if they have the same structure. Typically,

(is ’(foo bar) ’(foo bar)) ==> nil (iso ’(foo bar) ’(foo bar)) ==> t

Currently, concatenation and access to an element of the list via the object-in-functional-position are not implemented. The iso function is not implemented as a primitive (as it belongs to arc.arc, not ac.scm in the canonical implementation) but can be easily implemented.

Last edited by sacado, Fri Apr 18 15:16:43 -0700 2008
Home | Edit | New
Versions: