BitXor
Revision as of 23:09, 15 March 2020 by ZachStrout (talk | contribs) (Created page with "<c>bitXor</c> treats its arguments as integers, and computes the bitwise `xor`: each bit in the result is set only if the corresponding bit is set in exactly one (not zero or...")
bitXor
treats its arguments as integers, and computes the bitwise `xor`: each bit in the result is set only if the corresponding
bit is set in exactly one (not zero or both) of the arguments.
Arguments
Parameter Name | Default Value | Meaning |
---|---|---|
i | number, default 0 | first integer arument |
j | number, default 0 | second integer arument |
Usage Notes
funcname
may be called either as a global method, passing the sequence or map as an argument; or as a member function (defined on list, string, and map) using dot syntax, with no arguments.
Example
bitAnd(14, 7) // returns 9