22 lines
349 B
Markdown
22 lines
349 B
Markdown
--------------------
|
|
|
|
## cons
|
|
|
|
Basis Function
|
|
|
|
Given an item and a list, append the item to the list to make a new list.
|
|
|
|
a [...] cons
|
|
------------------
|
|
[a ...]
|
|
|
|
### Discussion
|
|
|
|
Cons is a [venerable old function from Lisp](https://en.wikipedia.org/wiki/Cons#Lists).
|
|
Its inverse operation is [uncons].
|
|
|
|
### Crosslinks
|
|
|
|
[uncons]
|
|
|