I have an object, A that contains another object, B. B contains two strings, stringOne and stringTwo.
Given that I have a list / sequence of A's,
Is it possible to create a map from the list of A's, that results in a HashMap of type A -> Seq[B], where what goes into Seq[B] are B items with identical B.stringOne and B.stringTwo?
A and B are case classes.
myList.to(ListMap)