which doesn't require building a Pair and whose lambdas could be replaced with bound references (e.g.
User::entityId
etc.), but that's not really the important part of the question…
ephemient
01/28/2022, 12:46 PM
partition can work if they're exclusive (no user is in both) but if there's potential overlap, you're not gonna get something much clearer. you could update two mutable maps from a single for loop, whether that's better or not, depends…