I have a collection of tuples:
Seq(("foo", "bar3"), ("foo", "bar1"), ("foo", "bar2"))
How do I apply such a function that I get
("foo", Seq("bar1", "bar2", "bar3"))
I just cannot wrap my head around this. I am new to functional programming so I was thinking about some sort of folding or aggregating.