Thread
#stdlib
    s

    spand

    2 years ago
    Any particular reason
    Iterable<T>.groupByTo
    requires destination to be a list and not a collection ?
    Dominaezzz

    Dominaezzz

    2 years ago
    Order preservation I think. Also, there's no nice way to allow users to choose what type of
    Collection
    is used, since generics are erased. I think you can use
    groupingBy
    if you want the flexibility.
    s

    spand

    2 years ago
    Ah, silly me. I thought for a second the destination was the
    List
    itself but its the map.