Dictionary entry
cons
Last updated
Meanings
nouncountablecomputing
In Lisp programming, a fundamental data structure that holds two pointers, called car and cdr, used to build lists.
Grammar: Countable; plural is also 'cons' or 'conses' in technical use.
Patterns
- a cons cell
- the cons of something
In Lisp, a cons is used to create pairs.
The list is built from a series of cons cells.
verbtransitivecomputing
In Lisp, to create a cons cell or to add an element to the front of a list.
Grammar: Takes an object: cons an element onto a list.
Patterns
- cons something onto something
- cons something with something
You can cons a new element onto the list.
The function conses the item to the front.
nounplural
Plural of 'con', meaning disadvantages or arguments against something.
Grammar: Always plural in this sense; the singular is 'con'.
Patterns
- the pros and cons
We discussed the pros and cons of moving.
She listed the cons of the proposal.
verbtransitive
Third-person singular present of 'con', meaning to deceive or trick someone.
Grammar: Used with he/she/it: he cons people.
Patterns
- cons someone into something
- cons someone out of something
He cons tourists into buying fake watches.
She cons her friends out of money.
Word forms
| plural | cons |
|---|---|
| third person singular | conses |
| past tense | consed |
| past participle | consed |
| -ing form | consing |
Common combinations
- pros and cons
- We weighed the pros and cons before deciding.
- cons cell
- A cons cell holds two values.
- cons onto
- You can cons the new item onto the list.
Word family
Commonly confused: cons or con?
cons vs con
'Cons' is plural or third-person singular; 'con' is singular or base form.
Practice
In Lisp, what does 'cons' typically do?
Choose one answer.
'Cons' in Lisp creates a cons cell, which is a pair of pointers (car and cdr). The other options are unrelated operations.
Make it your own
Write a sentence using “cons”, then check it and compare it with the examples above.