hho
listOf("cat1-subcat1", "cat1-subcat2", "cat1-subcat3", "cat2-subcat1", "cat2-subcat2") .map { it.split("-")} .groupBy({it[0]}, {it[1]})