Cons

In computer programming, cons is a function used by programming languages that are dialects of Lisp. It is the inverse of car and cdr, and is used to construct lists. For example, to construct the list (apples oranges pears bananas) from the three-element list (oranges pears bananas), you would use cons as follows:
  (cons 'apples '(oranges pears bananas)) 
The function cons always adds the new element to the beginning of the list. It must always have a list to start with, and fortunately, this can be the empty list. As an example, to construct the list (peaches), you would code:
  (cons 'peaches ()) 

 

<< PreviousWord BrowserNext >>
putpixel
riverdale high school
motion of no confidence
fake bump mapping
1819 in literature
1818 in literature
1817 in literature
1816 in literature
1815 in literature
1814 in literature
1813 in literature
1812 in literature
1811 in literature
1810 in literature
joseph menusa
where's wally?
matthew hopkins
uss chicago
powdered sugar
the necessity of atheism
habanero chile
x chromosome
scotch bonnet
icterid
lake lucerne
10 (number)
dozen
12 (number)
11 (number)
3 (number)
five (tv)
7 (number)
brandon lee
4 (number)
states general
fleur delacour
6 (number)
8 (number)
unity
marathon man
new world warbler
lucky number
14 (number)
dione (moon)