Just released a brand new collection type on GitHub with a native Swift wrapper you might like 😎 github.com/intuit/Grouped
Conversation
Cool! Why a reference type instead of a value type?
1
It made more sense that way to be able to mirror the underlying ObjC structure. Do you see a meaningful diff. as a class?
2
Value semantics are enormously different (cf my objc.io article). You do have the tools.
2
how do you solve the issue of hoisting "unshare()" calls out of loops, etc? Doesn't that required compiler support?
1
Not sure why you need to hoist unshare out of loops if you avoid making a copy of the internal reference until value is mutated
2
...from my understanding and WWDC lab discussions, this is why Array took until Beta 3 to take on value semantics
1
Replying to
Hm, okay! Maybe I misunderstand something, but I'm not sure what it is.

