cons

Definition from Wiktionary, the free dictionary
Jump to navigation Jump to search

English[edit]

Etymology 1[edit]

Noun[edit]

cons

  1. plural of con

Etymology 2[edit]

Diagram for the list (42 69 613). The car of the first cons is 42, and the cdr points the next cons. The list has three conses.

Clipping of construct.

Pronunciation[edit]

  • IPA(key): /ˈkɑnz/, /ˈkɑns/
  • (file)

Noun[edit]

cons (plural conses)

  1. (programming) A data structure in Lisp that is a pair of pointers, car and cdr, used mainly for lists.
    Synonym: cons cell
    Meronyms: car, cdr

Verb[edit]

cons (third-person singular simple present conses, present participle consing, simple past and past participle consed)

  1. (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.”

Etymology 3[edit]

Verb[edit]

cons

  1. Third-person singular simple present indicative form of con

Anagrams[edit]


Catalan[edit]

Noun[edit]

cons

  1. plural of con

French[edit]

Pronunciation[edit]

Noun[edit]

cons m

  1. plural of con