You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
these should be the next Pattern objects to handle
i think alternatives is easy. It should be as simple as iterating the arguments to Alternatives head calling match on each one
Condition im less sure about bc of f[x_] := ppp[x] /; x > 0 giving
Where the Condition does not wrap the Pattern. I think that means you see the match but in the evaluator or wherever the rule application is, you then need to check the head of the rhs to see if its a condition and bail if its not True
in order of importance, Condition is clearly the most useful
these should be the next Pattern objects to handle
i think alternatives is easy. It should be as simple as iterating the arguments to Alternatives head calling match on each one
Condition im less sure about bc of
f[x_] := ppp[x] /; x > 0
givingWhere the Condition does not wrap the Pattern. I think that means you see the match but in the evaluator or wherever the rule application is, you then need to check the head of the rhs to see if its a condition and bail if its not True
in order of importance, Condition is clearly the most useful
PatternTest is lowest priority I think
I want Condition support so that I could write
The text was updated successfully, but these errors were encountered: