<@U5VSX7K4L> tbh I’m looking for both, something l...
# getting-started
k
@ibcoleman tbh I’m looking for both, something like:
Copy code
a.groupByKey{(x,y) -> x+y}
where
x
and
y
are values from pairs with identical keys, but I understand there is no such method in std library
i
And also there is no such thing as "key" of the pair.
k
seems just like a really obscure way to perform folds
k
Thx, I took this assumption from hadoop’s map/reduce flow, where you can treat first element of a pair as a key
i
@ilya.gorbunov that groupingBy is pretty cool. don’t think I’ve seen that one before…