quotient/remainder[procedure] quotient/remainder n1 n2
MzScheme: returns two values: (quotient n1 n2) and (remainder n1 n2).
This can be useful because efficient algorithms exists that calculate both
values together. Therefore separate calls to quotient and remainder would
run slower.
Some other implementations have quotient&remainder.
|