[racket] r6rs remainder
Hi Erik,
On 2014-11-14 02:44:05 +0100, Erik Itter wrote:
> shouldn't (remainder x y) be defined in scheme r6rs already?
If you look in the relevant section[1] of the R6RS standard libraries
document, it says that the `remainder` procedure is defined in the
`(rnrs r5rs (6))` library. So you have to do:
#!r6rs
(import (rnrs r5rs (6)))
Or you can use Racket, in which the `remainder` function is built-in to
the base language:
http://docs.racket-lang.org/reference/generic-numbers.html#%28def._%28%28quote._~23~25kernel%29._remainder%29%29
[1]: http://www.r6rs.org/final/html/r6rs-lib/r6rs-lib-Z-H-20.html#node_idx_1292
Cheers,
Asumu