Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Component used: collection-ktx
Version used: 1.4.0
I need to use a memory efficient mutable map of Long to Pair<Int, Int>. A pair of 2 ints can be represented as a long, so I can use
MutableLongLongMap
for this.Currently, I have to do this:
Ideally I'd be able to leverage
IntIntPair
for this instead:Unfortunately, I can't do that today because
packedValue
andIntIntPair(Long)
areinternal
.This isn't a huge blocker, but it sure would be nice :)
Note: this issue is similar to Generate collections for storing IntIntPair and FloatFloatPair but I don't think the library should generate the combinatorial of all possible collection types, it'd be nicer to allow combining the various pair types with the optimized primitive data structures.