对于scala列表,它们之间有什么区别
:::和
++来自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.发布于 2013-05-07 17:00:45
:::连接两个列表,例如。list1 ::: list2
++连接任意两个集合,例如。list1 ++ list2。备注仅在scala 2.8中可用。
https://stackoverflow.com/questions/16415008
复制相似问题