mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 08:25:31 +00:00
add Pattern#xor
This commit is contained in:
parent
9bcf06e1b2
commit
48c7e4ab40
@ -21,6 +21,10 @@ public interface Pattern {
|
||||
return (y, column) -> this.matches(y, column) || that.matches(y, column);
|
||||
}
|
||||
|
||||
default Pattern xor(Pattern that) {
|
||||
return (y, column) -> this.matches(y, column) ^ that.matches(y, column);
|
||||
}
|
||||
|
||||
default Pattern not() {
|
||||
return (y, column) -> !this.matches(y, column);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user