首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >:和++的区别

:和++的区别
EN

Stack Overflow用户
提问于 2013-05-07 16:55:02
回答 1查看 84关注 0票数 0

对于scala列表,它们之间有什么区别

代码语言:javascript
复制
:::

代码语言:javascript
复制
++

来自doc

代码语言:javascript
复制
:::  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.
EN

回答 1

Stack Overflow用户

发布于 2013-05-07 17:00:45

:::连接两个列表,例如。list1 ::: list2

++连接任意两个集合,例如。list1 ++ list2。备注仅在scala 2.8中可用。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16415008

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档