cons

Etymology 1

noun

  1. plural of con

Etymology 2

Clipping of construct.

noun

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

verb

  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.
    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.” 1992, Peter Norvig, Paradigms of Artificial Intelligence Programming: Case Studies in Common Lisp, Morgan Kaufmann, page 62

Etymology 3

verb

  1. third-person singular simple present indicative of con

Attribution / Disclaimer All definitions come directly from Wiktionary using the Wiktextract library. We do not edit or curate the definitions for any words, if you feel the definition listed is incorrect or offensive please suggest modifications directly to the source (wiktionary/cons), any changes made to the source will update on this page periodically.