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
Currently pattern matching only works for assignments. One future objective is to make these work with function calls too. So something of the likes of
def func(x), do: x + 5
def func({x,y}), do: x + y
With this change both func(N) and func({N, M}) should work as intended instead of raising an error.
The text was updated successfully, but these errors were encountered:
Currently pattern matching only works for assignments. One future objective is to make these work with function calls too. So something of the likes of
With this change both
func(N)
andfunc({N, M})
should work as intended instead of raising an error.The text was updated successfully, but these errors were encountered: