Handbook
Glossary
even-parity? ( obj -- ? )
Factor handbook
»
The language
»
Numbers
»
Arithmetic
»
Bitwise arithmetic
»
Additional bitwise arithmetic
Prev:
bit-count ( obj -- n )
Next:
odd-parity? ( obj -- ? )
Vocabulary
math
.
bitwise
Inputs
obj
an
object
Outputs
?
a
boolean
Word description
Returns true if the number of set bits in an object is even.
Definition
USING:
math
;
IN:
math.bitwise
:
even-parity?
( obj -- ? )
bit-count
even?
;