How can Scala receive multiple parameters in a method definition?

Viewed 33530

Java has:

public void someMethod(int ... intArray) { // question: what is the equivalent to "..." 
    // do something with intArray
}

how can I achieve the same functionality in Scala? That is, passing an undefined number of parameters to a method?

2 Answers
Related