Pattern#not

This commit is contained in:
dfsek
2021-07-27 20:01:29 -07:00
parent 167ab3146e
commit 9693fa641b

View File

@@ -12,4 +12,8 @@ public interface Pattern {
default Pattern or(Pattern that) {
return (y, column) -> this.matches(y, column) || that.matches(y, column);
}
default Pattern not() {
return (y, column) -> !this.matches(y, column);
}
}