Join Slack
Powered by
Because transforming it into a map only "works" wh...
# 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>>>
gjesse
12/09/2017, 9:16 PM
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
I was referring to
https://en.wikipedia.org/wiki/Injective_function.
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
Open in Slack
Previous
Next