What's the difference between
and
Enter two words to compare and contrast their definitions, origins, and synonyms to better understand how those words are related.

Cons vs Caddr - What's the difference?

cons | caddr | Related terms |

Cons is a related term of caddr.


In computing|lang=en terms the difference between cons and caddr

is that cons is (computing) 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 while caddr is (computing) car of the cdr of the cdr in lisp the third element in a list.

As nouns the difference between cons and caddr

is that cons is or cons can be (computing) a data structure in lisp that is a pair of pointers, car and cdr, used mainly for lists while caddr is (computing) car of the cdr of the cdr in lisp the third element in a list.

As a verb cons

is (computing) 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 or cons can be (con).

cons

English

Etymology 1

Noun

(head)
  • Etymology 2

    Abbreviation of construct .

    Noun

    (conses)
  • (computing) A data structure in LISP that is a pair of pointers, car and cdr, used mainly for lists.
  • Synonyms
    * cons cell

    Verb

    (es)
  • (computing) 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.
  • In addition to specifying the whole list at once using square brackets and commas, you can build them up piece by piece using the (:) operator. This process is often referred to as consing.

    Etymology 3

    Verb

    (head)
  • (con)
  • ----

    caddr

    English

    Noun

    (en noun)
  • (computing) Car of the cdr of the cdr in LISP. The third element in a list.
  • * Matt Kaufmann, Panagiotis Manolios, and J Strother Moore, Computer-aided reasoning: an approach , 2000 :
  • If we let x denote the tree (1 2 3), then the car of x is 1, the cdr of x is (2 3), the cadr of x is 2, the caddr of x is 3, and the cdddr of x is nil.