2 ms·
I think what you want to do is (cons 'foo nil) It's in the oposite order. It starts with the empty list and it adds foo in the head. An extension is (co
by gus_massa 4y ago
I think what you want to do is
(cons 'foo nil)
It's in the oposite order. It starts with the empty list and it adds foo in the head.
An extension is
(cons 'bar (cons 'foo nil))
that is equivalent to
(list 'bar 'foo)