I do a group-by and I get key -> Stream(of values)
I then need to do a pattern match on the stream collection to access the last item but the pattern match doesn't work.
When I manually build the list of values using Seq the same pattern match code works
So my question is there a way to convert the Stream to Seq or List?
The IDE says toSeq
is redundant