-4

What does the " ++ " operator do on sets and lists? For example:

(row(r) ++ column(c))

Thanks in advance.

  • 2
    Please look this up in the documentation: http://www.scala-lang.org/api/current/index.html#scala.collection.immutable.List – Akos Krivachy Dec 04 '13 at 00:28

1 Answers1

1

++ combines the contents of two lists. The new list will contain the contents of row(r) followed by the contents of column(c)

If row(r) has the contents [1, 2] and column(c) has the contents [3, 4], the new list will contain [1, 2, 3, 4]

Andrew Jones
  • 1,382
  • 10
  • 26