且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将列表中的相邻元素分组

更新时间:2023-02-17 18:07:38

In [1,1,3,3,4,2,2,5,6,6], a thing like [1,1] is very often referred to as run (as in run-length encoding, see RLE in Scala). I'd therefore call the method groupRuns.

相关阅读

技术问答最新文章