numbers-2008.4.20: Various number typesSource codeContentsIndex
Data.Number.Natural
Description

Lazy natural numbers. Addition and multiplication recurses over the first argument, i.e., 1 + n is the way to write the constant time successor function.

Note that (+) and (*) are not commutative for lazy natural numbers when considering bottom.

Synopsis
data Natural
infinity :: Natural
Documentation
data Natural Source
show/hide Instances
infinity :: NaturalSource
The infinite natural number.
Produced by Haddock version 2.3.0