Accessing the elements of conses
cl_object
ECL_CONS_CAR (cl_object o)
¶cl_object
ECL_CONS_CDR (cl_object o)
¶cl_object
ECL_RPLACA (cl_object o, cl_object v)
¶cl_object
ECL_RPLACD (cl_object o, cl_object v)
¶cl_object
_ecl_car (cl_object o)
¶cl_object
_ecl_cdr (cl_object o)
¶cl_object
_ecl_caar (cl_object o)
¶cl_object
_ecl_cadr (cl_object o)
¶...
Description
These functions access the elements of objects of type cons
(ECL_CONS_CAR
, ECL_CONS_CDR
, ECL_RPLACA
and ECL_RPLACD
) or type list (_ecl_car
,
_ecl_cdr
, _ecl_caar
, ...). They don’t check the type
of their arguments.
Common Lisp and C equivalence
Lisp symbol | C function |
---|---|
cons | cl_object cl_cons(cl_object car, cl_object cdr) |
consp | cl_object cl_consp(cl_object object) |
atom | cl_object cl_atom(cl_object object) |
rplaca | cl_object cl_rplaca(cl_object cons, cl_object car) |
rplacd | cl_object cl_rplacd(cl_object cons, cl_object cdr) |
car | cl_object cl_car(cl_object cons) |
cdr | cl_object cl_cdr(cl_object cons) |
caar | cl_object cl_caar(cl_object cons) |
cdar | cl_object cl_cdar(cl_object cons) |
cadr | cl_object cl_cadr(cl_object cons) |
cddr | cl_object cl_cddr(cl_object cons) |
caaar | cl_object cl_caaar(cl_object cons) |
cdaar | cl_object cl_cdaar(cl_object cons) |
cadar | cl_object cl_cadar(cl_object cons) |
cddar | cl_object cl_cddar(cl_object cons) |
caadr | cl_object cl_caadr(cl_object cons) |
cdadr | cl_object cl_cdadr(cl_object cons) |
caddr | cl_object cl_caddr(cl_object cons) |
cdddr | cl_object cl_cdddr(cl_object cons) |
caaaar | cl_object cl_caaaar(cl_object cons) |
cdaaar | cl_object cl_cdaaar(cl_object cons) |
cadaar | cl_object cl_cadaar(cl_object cons) |
cddaar | cl_object cl_cddaar(cl_object cons) |
caadar | cl_object cl_caadar(cl_object cons) |
cdadar | cl_object cl_cdadar(cl_object cons) |
caddar | cl_object cl_caddar(cl_object cons) |
cdddar | cl_object cl_cdddar(cl_object cons) |
caaadr | cl_object cl_caaadr(cl_object cons) |
cdaadr | cl_object cl_cdaadr(cl_object cons) |
cadadr | cl_object cl_cadadr(cl_object cons) |
cddadr | cl_object cl_cddadr(cl_object cons) |
caaddr | cl_object cl_caaddr(cl_object cons) |
cdaddr | cl_object cl_cdaddr(cl_object cons) |
cadddr | cl_object cl_cadddr(cl_object cons) |
cddddr | cl_object cl_cddddr(cl_object cons) |
copy-tree | cl_object cl_copy_tree(cl_object tree) |
sublis | cl_object cl_sublis(cl_narg narg, cl_object alist, cl_object tree, ...) |
nsublis | cl_object cl_sublis(cl_narg narg, cl_object alist, cl_object tree, ...) |
subst | cl_object cl_subst(cl_narg narg, cl_object new, cl_object old, cl_object tree, ...) |
subst-if | cl_object cl_subst_if(cl_narg narg, cl_object new, cl_object predicate, cl_object tree, ...) |
subst-if-not | cl_object cl_subst_if_not(cl_narg narg, cl_object new, cl_object predicate, cl_object tree, ...) |
nsubst | cl_object cl_nsubst(cl_narg narg, cl_object new, cl_object old, cl_object tree, ...) |
nsubst-if | cl_object cl_nsubst_if(cl_narg narg, cl_object new, cl_object predicate, cl_object tree, ...) |
nsubst-if-not | cl_object cl_nsubst_if_not(cl_narg narg, cl_object new, cl_object predicate, cl_object tree, ...) |
tree-equal | cl_object cl_tree_equal(cl_narg narg, cl_object tree1, cl_object tree2, ...) |
copy-list | cl_object cl_copy_list(cl_object list) |
list | cl_object cl_list(cl_narg narg, ...) |
list* | cl_object cl_listX(cl_narg narg, ...) |
list-length | cl_object cl_list_length(cl_object list) |
listp | cl_object cl_listp(cl_object object) |
make-list | cl_object cl_make_list(cl_narg narg, cl_object size, ...) |
first | cl_object cl_first(cl_object list) |
second | cl_object cl_second(cl_object list) |
third | cl_object cl_third(cl_object list) |
fourth | cl_object cl_fourth(cl_object list) |
fifth | cl_object cl_fifth(cl_object list) |
sixth | cl_object cl_sixth(cl_object list) |
seventh | cl_object cl_seventh(cl_object list) |
eighth | cl_object cl_eighth(cl_object list) |
ninth | cl_object cl_ninth(cl_object list) |
tenth | cl_object cl_tenth(cl_object list) |
nth | cl_object cl_nth(cl_object n, cl_object list) |
endp | cl_object cl_endp(cl_object list) |
null | cl_object cl_null(cl_object object) |
nconc | cl_object cl_nconc(cl_narg narg, ...) |
append | cl_object cl_append(cl_narg narg, ...) |
revappend | cl_object cl_revappend(cl_object list, cl_object tail) |
nreconc | cl_object cl_nreconc(cl_object list, cl_object tail) |
butlast | cl_object cl_butlast(cl_narg narg, cl_object list, ...) |
nbutlast | cl_object cl_nbutlast(cl_narg narg, cl_object list, ...) |
last | cl_object cl_last(cl_narg narg, cl_object list, ...) |
ldiff | cl_object cl_ldiff(cl_object list, cl_object object) |
tailp | cl_object cl_tailp(cl_object object, cl_object list) |
nthcdr | cl_object cl_nthcdr(cl_object n, cl_object list) |
rest | cl_object cl_rest(cl_object list) |
member | cl_object cl_member(cl_narg narg, cl_object member, cl_object list, ....) |
member-if | cl_object cl_member_if(cl_narg narg, cl_object predicate, cl_object list, ....) |
member-if-not | cl_object cl_member_if_not(cl_narg narg, cl_object predicate, cl_object list, ....) |
mapc | cl_object cl_mapc(cl_narg narg, cl_object function, ...) |
mapcar | cl_object cl_mapcar(cl_narg narg, cl_object function, ...) |
mapcan | cl_object cl_mapcan(cl_narg narg, cl_object function, ...) |
mapl | cl_object cl_mapl(cl_narg narg, cl_object function, ...) |
maplist | cl_object cl_maplist(cl_narg narg, cl_object function, ...) |
mapcon | cl_object cl_mapcon(cl_narg narg, cl_object function, ...) |
acons | cl_object cl_acons(cl_object key, cl_object datum, cl_object alist) |
assoc | cl_object cl_assoc(cl_narg narg, cl_object item, cl_object alist, ...) |
assoc-if | cl_object cl_assoc_if(cl_narg narg, cl_object predicate, cl_object alist, ...) |
assoc-if-not | cl_object cl_assoc_if_not(cl_narg narg, cl_object predicate, cl_object alist, ...) |
copy-alist | cl_object cl_copy_alist(cl_object alist) |
pairlis | cl_object cl_pairlis(cl_narg narg, cl_object keys, cl_object data, ...) |
rassoc | cl_object cl_rassoc(cl_narg narg, cl_object item, cl_object alist, ...) |
rassoc-if | cl_object cl_rassoc_if(cl_narg narg, cl_object predicate, cl_object alist, ...) |
rassoc-if-not | cl_object cl_rassoc_if_not(cl_narg narg, cl_object predicate, cl_object alist, ...) |
get-properties | cl_object cl_get_properties(cl_object plist, cl_object indicator_list) |
getf | cl_object cl_getf(cl_narg narg, cl_object plist, cl_object indicator, ...) |
intersection | cl_object cl_intersection(cl_narg narg, cl_object list1, cl_object list2, ...) |
nintersection | cl_object cl_nintersection(cl_narg narg, cl_object list1, cl_object list2, ...) |
adjoin | cl_object cl_adjoin(cl_narg narg, cl_object item, cl_object list, ...) |
set-difference | cl_object cl_set_difference(cl_narg narg, cl_object list1, cl_object list2, ...) |
nset-difference | cl_object cl_nset_difference(cl_narg narg, cl_object list1, cl_object list2, ...) |
set-exclusive-or | cl_object cl_set_exclusive_or(cl_narg narg, cl_object list1, cl_object list2, ...) |
nset-exclusive-or | cl_object cl_nset_exclusive_or(cl_narg narg, cl_object list1, cl_object list2, ...) |
subsetp | cl_object cl_subsetp(cl_narg narg, cl_object list1, cl_object list2, ...) |
union | cl_object cl_union(cl_narg narg, cl_object list1, cl_object list2, ...) |
nunion | cl_object cl_nunion(cl_narg narg, cl_object list1, cl_object list2, ...) |