Thun/docs/yow/divmod.rst

37 lines
329 B
ReStructuredText

--------------
divmod
^^^^^^^^
Basis Function Combinator
divmod(x, y) -> (quotient, remainder)
Return the tuple (x//y, x%y). Invariant: q * y + r == x.
Gentzen diagram.
Definition
~~~~~~~~~~
if not basis.
Derivation
~~~~~~~~~~
if not basis.
Source
~~~~~~~~~~
if basis
Discussion
~~~~~~~~~~
Crosslinks
~~~~~~~~~~