val words = arrayOf("hello", "world", "kotlin", "android") // 按单词长度分组,并获取每个分组的大小,每个分组的大小: {5=2, 6=1, 7=1} words.groupingBy { it.count() }.eachCount().forEach { _console.log(it) }