spand
10/22/2019, 9:31 AMIterable<T>.groupByTo
requires destination to be a list and not a collection ?Dominaezzz
10/22/2019, 9:43 AMCollection
is used, since generics are erased.
I think you can use groupingBy
if you want the flexibility.spand
10/22/2019, 9:46 AMList
itself but its the map.