split list based on element value in scala

前端 未结 0 1409
-上瘾入骨i
-上瘾入骨i 2020-12-06 21:51

Is there a built-in function (or an easy implementation) for splitting a list into sublists based on the element value

For example, if the list is:

val         


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