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
The discussion of .. shows how to use .. to "ignore" things, and demonstrates it on struct patterns and tuple patterns.
But the book does not show .. in use on slice patterns.
Nor does it demonstrate the (common?) idiom of not ignoring the portion of the slice matched via .., but instead binding it to its own variable, via the pattern IDENT @ .. in the midst of the slice pattern.
Suggested fix:
To be honest, I'm not totally sure. It would be fine to fix the absence of slice demos by just adding one.
But the "Ignoring Values in a Pattern" would be a bit of a weird place to show how not to ignore it. That's what I'm hestiating about. :)