Matcher functions are fairly useful, but it would be often helpful to combine them with and or or. We could make a PathMatcher class with __and__ and __or__ implemented so we can get these behaviors. Follow the behavior of and and or for determining which match is sent to the PathCalcs.
Matcher functions are fairly useful, but it would be often helpful to combine them with
and
oror
. We could make aPathMatcher
class with__and__
and__or__
implemented so we can get these behaviors. Follow the behavior ofand
andor
for determining which match is sent to thePathCalc
s.