3 ms·
> You can use the underscore operator to skip the other attributes And have to add an underscore in the right position when you ever add an attribute? With par
by tomsmeding 6y ago
> You can use the underscore operator to skip the other attributes
And have to add an underscore in the right position when you ever add an attribute? With partial matching like described, you don't have to change the pattern when adding fields to the data structure. I guess the GP was referring to this.
- 0x008 6y agoWell that is a little bit different I guess. You probably could do some unapply shenanigans to achieve the same result but that off the top of my head I would not know how to do that.