There are 4 utilities.
- recons v1.0
-
Reuse the cons cell
old-cons
, replacing its CAR witha
and CDR withb
.- Provides
recons
- copy-cons v1.0
-
Copy the cons cell
c
.- Provides
copy-cons
- ensure-car v1.0
-
If
thing
is acons
, itscar
is returned. Otherwisething
is returned.- Provides
ensure-car
- ensure-cons v1.0
-
If
cons
is a cons, it is returned. Otherwise returns a fresh cons withcons
in the car, andnil
in the cdr.- Provides
ensure-cons