[r6rs-discuss] bitwise-copy-bit
Per Bothner
per at bothner.com
Wed Jul 16 19:51:05 EDT 2008
R6RS says:
(bitwise-copy-bit ei1 ei2 ei3) procedure
Ei2 must be non-negative, and ei3 must be either 0 or 1. The
bitwise-copy-bit procedure returns the result of replacing the ei2th bit
of ei1 by the ei2th bit of ei3, which is the result of the following
computation:
(let* ((mask (bitwise-arithmetic-shift-left 1 ei2)))
(bitwise-if mask
(bitwise-arithmetic-shift-left ei3 ei2)
ei1))
Shouldn't that be "replacing the ei2th bit of ei1 by ei3"
(rather than "... by the ei2th bit of ei3")?
--
--Per Bothner
per at bothner.com http://per.bothner.com/
More information about the r6rs-discuss
mailing list