Comment

Comment by sillysaurusx

Yes, but cdr(vector(1, 2, 3)) throws an error in almost all lisp implementations. Which means you can’t use the classic algorithms on them, like map.

It’s worth considering carefully why you feel cons cells are so important for lisp code. Nested vectors are trees. Why not represent

  (define (foo x) x)
as

  [define, [foo, x], x]

?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton