3 ms·
It's extremely common in Lisp. Linked lists are the natural data structure of Lisp and in most modern programs they rarely get modified. Common Lisp provides ve
by dreamcompiler 5y ago
It's extremely common in Lisp. Linked lists are the natural data structure of Lisp and in most modern programs they rarely get modified. Common Lisp provides vectors for greater efficiency but they might be less necessary in many programs if this trick works.
- gpderetta 5y agoThat's a very good use case. I wonder if a good CL compiler would be able to convert many of these lists to arrays anyway.