spand
05/29/2017, 12:24 PMlistOf("str", "str", 2, "str")
into sublists based on ie. .class
so the example would become listOf(listOf("str", "str"), listOf(2), listOf("str"))
diesieben07
05/29/2017, 12:29 PMlist.groupBy { it.javaClass }.values.toList()
spand
05/29/2017, 12:30 PMkirillrakhman
05/29/2017, 12:54 PMspand
05/29/2017, 1:17 PM