caddr

From Wiktionary, the free dictionary
Jump to navigation Jump to search

English[edit]

Etymology[edit]

Contraction of car of the cdr of the cdr.

Pronunciation[edit]

  • IPA(key): /ˈkɑːdədə/, /ˈkɑdədɚ/

Noun[edit]

caddr (plural caddrs)

  1. (programming) Car of the cdr of the cdr in Lisp. The third element in a list.
    • 1991, Peter M. Kogge, The Architecture of Symbolic Computers, page 156:
      Following the SEL in the control list are two elements (the cadr and caddr of the C list), both of which are themselves lists of instructions.
    • 1994, Evan Tick, Giancarlo Succi, Implementations of Logic Programming Systems, →ISBN, page 239:
      For example, in a procedure that manipulates a list data stream, we might know that the mode of the car of the list (that is the current message) is the same mode as the cadr (second message), caddr (third message), etc.
    • 2000, Matt Kaufmann, Panagiotis Manolios, J Strother Moore, Computer-aided reasoning: an approach:
      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.
    • 2004, Scott, Programming Principles Of Mulltimedia Systems, →ISBN, page 608:
      In effect, lazy evaluation would force things to happen in the proper order: The car of output is the first prompt. The cadr of output is the first square, a value that requires evaluation of the car of input. The caddr of output is the second prompt.