2013-05-07 328 views
0

對於斯卡拉名單,是從什麼doc之間的差異和::: ++

::: Adds an element at the beginning of this list. 
++ Returns a new list containing the elements from the left hand operand followed by the elements from the right hand operand. 
+0

使用symbolhound執行[對這樣的神祕符號進行搜索](http://symbolhound.com/?q=%3A%3A%3A+%2B%2B) – 2013-05-07 08:57:17

回答

1

:::連接兩個列表如

::: 

++ 

之間的區別。 list1 ::: list2

++連接任何兩個集合例如。 list1 ++ list2。注意僅適用於scala 2.8。