add Distributor#xor

This commit is contained in:
dfsek
2022-01-08 10:45:27 -07:00
parent 5881e4465f
commit 2b3cee6b7c

View File

@@ -25,4 +25,8 @@ public interface Distributor {
default Distributor or(Distributor other) {
return (x, z, seed) -> this.matches(x, z, seed) || other.matches(x, z, seed);
}
default Distributor xor(Distributor other) {
return (x, z, seed) -> this.matches(x, z, seed) ^ other.matches(x, z, seed);
}
}