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
I cribbed the example from Control Structures and made some modifications to illustrate it better here. I guess the point is that if you need to have a complex match condition decomposing an object, you can do, but appreciate this is a bit contrived.
As a newcomer to the Scala language, I find this section difficult to follow.
It would help if
Person
andname
were defined somewhere to be able to compile at least but it's not at all clear what is going on to me.Is anyone able to shed some light, happy to improve the docs myself once I understand what's trying to be demonstrated here.
The text was updated successfully, but these errors were encountered: