As far as I understand you, that is exactly what `...
# getting-started
m
As far as I understand you, that is exactly what
groupBy
does. If multiple values have the same letter, they will end up in the same list. If the list is originally
listOf(CarMake("BMW"), CarMake("Bentley"))
, then the result would be
{B=[CarMake(name=BMW), CarMake(name=Bentley)]}
.