Major Section: ACL2-BUILT-INS
(strip-cars x)
is the list obtained by walking through the list x
and
collecting up all first components (car
s). This function is
implemented in a tail-recursive way, despite its logical definition.
(strip-cars x)
has a guard of (alistp x)
.
To see the ACL2 definition of this function, see pf.