bod
05/12/2020, 9:20 AMgildor
05/12/2020, 9:21 AMbod
05/12/2020, 9:26 AMgildor
05/12/2020, 9:27 AMbod
05/12/2020, 9:39 AMgildor
05/12/2020, 9:52 AMbod
05/12/2020, 9:54 AMbod
05/12/2020, 9:54 AMgildor
05/12/2020, 9:55 AMgildor
05/12/2020, 9:55 AMre-implementing the wheel on all their projectsOr use many existing ones, Guava probably the most common dependency
gildor
05/12/2020, 9:57 AMbod
05/12/2020, 10:05 AMgildor
05/12/2020, 10:06 AMRuckus
05/12/2020, 1:31 PMgiven that IMO the vast majority of projects will at some point need a Multimap
IMO this is an extreme over estimation, but that may just be selection bias.
bod
05/12/2020, 1:34 PMCody Engel
05/12/2020, 2:38 PMbod
05/12/2020, 2:44 PMCody Engel
05/12/2020, 4:26 PMMap<K, List<V>>
which isn't that much work. It looks like iterating over the maps is the same amount of effortbod
05/12/2020, 4:28 PMbod
05/12/2020, 4:31 PMshuffle
has just been added to arrays. Don't get me wrong, that's cool! But is it really used that often? I don't know if there's an easy standard to decide what should be in the stdlib vs what should be kept in external libs. Probably a very hard question.Derek Peirce
05/12/2020, 6:55 PMtypealias
and a few extension methods to effectively turn any Map<K, MutableCollection<V>>
into a MultiMap<K, V>
, just slightly less performant than Guava's implementation. Same deal for Map<E, Int>
into a MultiSet<E>
.Cody Engel
05/12/2020, 7:18 PMgildor
05/13/2020, 2:04 AMI mean for instance,Shuffle is just a small extension function, it was added recently because stdlib Random is introducedhas just been added to arraysshuffle
bod
05/13/2020, 6:36 AMlet
is also easy to implement but we wouldn't like to do it ourselves in every project.gildor
05/13/2020, 6:53 AMgildor
05/13/2020, 6:54 AMbod
05/13/2020, 7:12 AMgildor
05/13/2020, 7:50 AMgildor
05/13/2020, 7:55 AM