Quickutilβ

Lisp utilities on demand

Fork me on GitHub
search

There are 4 utilities.

recons v1.0

Reuse the cons cell old-cons, replacing its CAR with a and CDR with b.

Provides
recons
Source Code
 
copy-cons v1.0

Copy the cons cell c.

Provides
copy-cons
Source Code
 
ensure-car v1.0

If thing is a cons, its car is returned. Otherwise thing is returned.

Provides
ensure-car
Source Code
 
ensure-cons v1.0

If cons is a cons, it is returned. Otherwise returns a fresh cons with cons in the car, and nil in the cdr.

Provides
ensure-cons
Source Code