0

For a scala list, what is the difference between

:::

and

++

From 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.
More Than Five
  • 9,959
  • 21
  • 77
  • 127
  • Use symbolhound to perform [searches against such cryptic symbols](http://symbolhound.com/?q=%3A%3A%3A+%2B%2B) – om-nom-nom May 07 '13 at 08:57

1 Answers1

1

::: concatenate two lists eg. list1 ::: list2

++ concatenate any two collections eg. list1 ++ list2. Note available only from scala 2.8.

Bitmap
  • 12,402
  • 16
  • 64
  • 91