Lists: fixes the symbol for the cons operator

This commit is contained in:
Marko Dimjašević 2019-03-11 07:12:48 +01:00 committed by Wen Kokke
parent daaf2f9b82
commit 211368cf29

View file

@ -54,7 +54,7 @@ For example,
_ : List
_ = 0 ∷ 1 ∷ 2 ∷ []
\end{code}
denotes the list of the first three natural numbers. Since `_::_`
denotes the list of the first three natural numbers. Since `__`
associates to the right, the term parses as `0 ∷ (1 ∷ (2 ∷ []))`.
Here `0` is the first element of the list, called the _head_,
and `1 ∷ (2 ∷ [])` is a list of the remaining elements, called the