Because transforming it into a map only "works" wh...
# announcements
k
Because transforming it into a map only "works" when your map function is injective.
g
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
g
neat, good term - i was also suspecting something to do with distinctness but didn’t have the words for it