cons
English
Pronunciation
- IPA(key): /ˈkɑnz/, /ˈkɑns/
Audio (US) (file) - Rhymes: -ɑnz, -ɑns
Noun
cons (plural conses)
- (programming) A data structure in Lisp that is a pair of pointers, car and cdr, used mainly for lists.
Verb
cons (third-person singular simple present conses, present participle consing, simple past and past participle consed)
- (programming) To obtain a list from a cons or a nesting of conses; to prepend an element to a list by forming a cons of that element and the list; to obtain a list from a smaller one by repeated application of such kind of prepending.
- 1992, Peter Norvig, Paradigms of Artificial Intelligence Programming: Case Studies in Common Lisp, Morgan Kaufmann, →ISBN, page 62:
- This version of
length
arises naturally from the recursive definition of a list: “a list is either the empty list or an element consed onto another list.”
This article is issued from Wiktionary. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.