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
If the match inside the case captured the first segment into a Length variable similar to the assignment on the previous line then that would likely fix it.
Is this doing the pattern match twice? Or does Erlang optimise that away?
The following code references the result of the pattern's first segment in its second segment:
Building for Erlang gives:
Erlang can handle this kind of self-referencing pattern so Gleam probably should too.
The following Erlang works as expected:
Gleam version: 1.6.3 and 1.7.0-rc3.
The text was updated successfully, but these errors were encountered: