Xor¶
Status: Stable
documented, exercised by the test suite and/or worked examples, with no known limitations recorded.
Description¶
Xor[e1, e2, ...]
The logical exclusive OR of the ei: True when an odd number of the arguments are True. Folds literal Booleans and cancels duplicate arguments (a Xor a is False); Xor[] is False and Xor[e] is e.
Examples¶
No verified examples yet for this function.
Implementation notes¶
Attributes: Flat, OneIdentity, Orderless, Protected.
References¶
See also: Flat, Orderless, OneIdentity
- Source:
src/boolean.c - Specification:
docs/spec/builtins/control-flow.md - Tests:
tests/test_boolean.c - Tests:
tests/test_reduce.c