5 ms·
Cons cells are the traditional Lisp data structure making up the nodes of a linked list. It comes from the cons function which is short for "construct". Ironic
by simongray 6y ago
Cons cells are the traditional Lisp data structure making up the nodes of a linked list. It comes from the cons function which is short for "construct".
Ironically, Clojure doesn't use cons cells, although it does have a cons function.
- junke 6y agoAdditionally, "to cons" more broadly means "to allocate memory".
- DonHopkins 6y agoAnd remember, that's "CONS" not "CON"! Don't confuse CONS ARTISTS: https://en.wikipedia.org/wiki/Category:Lisp_people https://en.wikipedia.org/wiki/Category:Lisp_people With CON ARTISTS: https://en.wikipedia.org/wiki/List_of_con_artists https://en.wikipedia.org/wiki/List_of_con_artists
- dunefox 6y ago"He is the cons man of the operation."