How to pass Scala array into Scala vararg method?

Append :_* to the parameter in test like this

test(some:_*)

And it should work as you expect.

If you wonder what that magical :_* does, please refer to this question.

Leave a Comment