numbers-2007.9.25: 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.

Not 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.1.0