What are cons?

Cons

In computer programming, cons ( /ˈkɒnz/ or /ˈkɒns/) is a fundamental function in most dialects of the Lisp programming language. cons constructs memory objects which hold two values or pointers to values. These objects are referred to as (cons) cells, conses, non-atomic s-expressions ("NATSes"), or (cons) pairs. In Lisp jargon, the expression "to cons x onto y" means to construct a new object with (cons x y). The resulting pair has a left half, referred to as the car (the first element), and a right half (the second element), referred to as the cdr.

Read more about Cons.

Some articles on cons:

Cons - Not Technically Fundamental
... For example, in Scheme (define (cons x y) (lambda (m) (m x y))) (define (car z) (z (lambda (p q) p))) (define (cdr z) (z (lambda (p q) q))) The above code re-implements the cons, car, and cdr operations, using a ... while academically interesting, is impractical because it renders cons cells indistinguishable from any other Scheme procedure, as well as introducing ...
CGOL - Syntax
... operation (referring to MACLISP's cons function) and the infix @ operation (referring to MACLISP's append function) a.(b@c) = (a.b)@c The preceding ...
Cons-la-Grandville
... Cons-la-Grandville is a commune in the Meurthe-et-Moselle department in north-eastern France ... The Château de Cons-la-Grandville is situated in the middle of the village ...
List Of Foreign K-League Players - Europe – UEFA - England
... Atkinson (2001 Daejeon Citizen, 2001 Jeonbuk Hyundai Motors) Jamie Cureton (2003 Busan I’Cons) Andy Cooke (2003–2004 Busan I’Cons) Chris Marsden (2004 Busan I’Cons) Richard Offiong (2005 ...