|
|
|
|
|
by math-dev
1337 days ago
|
|
cons is a recursive data structure. it’s not discussed much here in the comments, but a lot of its useability comes from that fact - you can write elegant recursive algorithms with cons as your data structure with vectors that doesn’t work UNLESS you add a bit of overhead (which most optimising programs may do since for many cases vectors can be more performant) |
|
[1] https://en.wikipedia.org/wiki/CDR_coding