https://kotlinlang.org logo
#announcements
Title
# announcements
k

karelpeeters

12/09/2017, 8:57 PM
Because transforming it into a map only "works" when your map function is injective.
g

gjesse

12/09/2017, 9:14 PM
what do you mean by injective? i’m a little confused by your answer here. also, i’d expect it to transform to a
List<Pair<A, List<B>>>
i thought it had something to do with a terminal / collecting operation, while
.map{}
is just iterable -> iterable
k

karelpeeters

12/09/2017, 9:20 PM
g

gjesse

12/09/2017, 9:38 PM
neat, good term - i was also suspecting something to do with distinctness but didn’t have the words for it
2 Views