hi. I have a list with objects with four fields. ...
# getting-started
n
hi. I have a list with objects with four fields. I can group the my list by one field with list.groupBy{it.field1} and it will be like Map{"field1value",List<MyObjects>}. I want to group my list with all four field. I want to make them hierarchical map like
Copy code
Map<Field1Values, 
         Map<Field2Values,
                               Map<Field3Values,
                                                         Map<Field4Values,List<MyObject>>>>
how can I do it?