且构网

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

Scala的并行集合是否可以保证订购?

更新时间:2023-11-30 10:05:46

是的,但是函数本身的执行没有任何特定的顺序.

Yes, but the function itself is executed without any particular order.

List(1,2,3).par foreach print // could print out 213