Split a list based on condition in kotlin

后端 未结 0 1748
隐瞒了意图╮
隐瞒了意图╮ 2020-12-18 17:29

I am trying to group a list based on some type and if they are in sequence

data class Item(val type: Int, val name: String)

private fun splitItems(items: Lis         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题