Scala: pass Seq to var-args functions

foo(args:_*) does the trick. Instead of applying the sequence as one single argument, each element in the sequence will be used as an argument.

Leave a Comment