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
In retrospect it is pretty obvious, but I needed to look up the associativity of => to figure out how to match Pair(x,y) expressions, ie
@match :(a => b) begin
(x_ => y_) => (x,y) # need parentheses
_ =>:unmatchedend
where x_ => y_ => (x,y) won't work because it is parsed as x_ => (y_ => (x,y)). Thanks for the great package, if you consider this issue too trivial just close it.
The text was updated successfully, but these errors were encountered:
In retrospect it is pretty obvious, but I needed to look up the associativity of
=>
to figure out how to matchPair(x,y)
expressions, iewhere
x_ => y_ => (x,y)
won't work because it is parsed asx_ => (y_ => (x,y))
. Thanks for the great package, if you consider this issue too trivial just close it.The text was updated successfully, but these errors were encountered: