I guess I'm curious how the implementation of Vector works in Lisps. I thought it would be some sort of combination of Atoms and Cons cells.
I looked into the Racket Repo to find something, but had a hard time finding the code.
I looked into the Racket Repo to find something, but had a hard time finding the code.
Other Schemes and Common Lisp have similar constructs. Just because a language is a lisp doesn't mean its primitives have to be implemented using cons cells.
https://www.khoury.northeastern.edu/home/lth/larceny/notes/n...
Cons cells are typically used to provide lists with O(n) access time.