I have Seqitems Tuple3. I need a resulting collection (possibly Set) consisting of the second element of each tuple.
for instance
(a, b, c), (d, e, f), (g, h, i) ==> (b, e, h)
Any idea? I searched a lot, but everything I find is related to filtering on tuples, and not inside them, if that makes sense.
I'm still new to Scala, learning is a lengthy process :) Thanks for all your help.
source
share