Cases
and have a set of “lhs:>rhs”
pattern matches, but it is not clear how to do this? I see a number of QAs using Alternatives
and Except
, but it doesn’t seem that would work for multiple delayed rules. Ideally you can match one case, apply a rule, then apply a rule to the remaining cases, or have an additional match, and so-on...