Closed a5r0n closed 2 years ago
maybe we want to add something like match_any
& match_all
instead of only match
maybe we want to add something like match_any & match_all instead of only match That's a good idea. I believe
match
is currently a match all.
two options ideas:
match_any
?match(dict)
to def match(dict, all=True)
where all=False
is an OR
, and all=True
= AND
Either way, we can merge this as is and consider these ☝️ in a follow up issue/PR. Feel free to open issue
Thanks. We will need to add docs as well