How to chunk a list in specific value? [Kotlin]

前端 未结 0 802
花落未央
花落未央 2021-02-05 05:29

How to chunk a list in specific value?

Ex: split where current value is 5

val x = listOf(1,2,3,4,5,2,3,1,4,5,4,3,2,1,5)


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