Caddr
Definition, Meaning & Examples
Pronunciation /ˈkɑːdədə/ · Part of speech noun
Quick meaning: Caddr is a noun meaning (programming) Car of the cdr of the cdr in Lisp. The third element in a list.
Meaning
(programming) Car of the cdr of the cdr in Lisp. The third element in a list.
Example Sentences
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.
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.
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.
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.
Word Forms
- caddrs
Related Words
Related dictionary entries include cadr, caddy, codelist, caterpillar, cass, caddess.
Related Dictionary Tools
Sources & Attribution
FreeDictionaryAPI.com / Wiktionary · Original source · CC BY-SA 4.0
Dictionary data is provided by FreeDictionaryAPI.com and sourced from Wiktionary under its stated license.