Split list when predicate is true

前端 未结 0 1299
野性不改
野性不改 2020-12-04 16:21

Does Kotlin provide a mutation function to split a list when a specific predicate is true?

In the following example the list should be split when the element is a

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