What is an efficient way to concatenate lists?

Viewed 2268

When we have two lists a and b, how can one concatenate those two (order is not relevant) to a new list in an efficient way ?

I could not figure out from the Scala API, if a ::: b and a ++ b are efficient. Maybe I missed something.

1 Answers
Related