4 ms·
Can someone explain what this means? What is this "consed" he is talking about? I'm a c++ programmer, "consed every pair" means nothing to me.
by gambiting 7y ago
Can someone explain what this means? What is this "consed" he is talking about? I'm a c++ programmer, "consed every pair" means nothing to me.
- simongray 7y agoCons 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 7y agoAdditionally, "to cons" more broadly means "to allocate memory".
- DonHopkins 7y 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 7y ago"He is the cons man of the operation."
- zshrdlu 7y agoFrom the Common Lisp Hyperspec: cons n.v. 1. n. a compound data object having two components called the car and the cdr. 2. v. to create such an object. 3. v. Idiom. to create any object, or to allocate storage.