Class Xor
java.lang.Object
com.jnape.palatable.lambda.monoid.builtin.Xor
- All Implemented Interfaces:
Fn1<Boolean,
,Fn1<Boolean, Boolean>> Fn2<Boolean,
,Boolean, Boolean> BiPredicate<Boolean,
,Boolean> Applicative<Fn1<Boolean,
,Boolean>, Fn1<Boolean, ?>> Cartesian<Boolean,
,Fn1<Boolean, Boolean>, Fn1<?, ?>> Cocartesian<Boolean,
,Fn1<Boolean, Boolean>, Fn1<?, ?>> Contravariant<Boolean,
,Profunctor<?, Fn1<Boolean, Boolean>, Fn1<?, ?>>> Functor<Fn1<Boolean,
,Boolean>, Fn1<Boolean, ?>> Profunctor<Boolean,
,Fn1<Boolean, Boolean>, Fn1<?, ?>> Monad<Fn1<Boolean,
,Boolean>, Fn1<Boolean, ?>> MonadReader<Boolean,
,Fn1<Boolean, Boolean>, Fn1<Boolean, ?>> MonadRec<Fn1<Boolean,
,Boolean>, Fn1<Boolean, ?>> MonadWriter<Boolean,
,Fn1<Boolean, Boolean>, Fn1<Boolean, ?>> Monoid<Boolean>
,Semigroup<Boolean>
Logical exclusive-or. Equivalent to logical
^
.
Note that this implementation behaves as a cascade of binary exclusive-or operations, as is the only possible monoidal behavior when applied to an unknown number of inputs.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.jnape.palatable.lambda.functions.specialized.BiPredicate
and, apply, contraMap, diMapL, discardR, negate, or, toBiPredicate, uncurry
Methods inherited from interface com.jnape.palatable.lambda.functions.Fn1
andThen, carry, cartesian, censor, choose, cocartesian, diMap, diMapR, discardL, flatMap, fmap, lazyZip, listens, local, pure, self, thunk, toFunction, trampolineM, zip, zip
Methods inherited from interface com.jnape.palatable.lambda.functions.Fn2
apply, checkedApply, compose, toBiFunction, widen
Methods inherited from interface com.jnape.palatable.lambda.monoid.Monoid
foldLeft, foldMap, foldRight, reduceLeft, reduceRight
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Xor
private Xor()
-
-
Method Details