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.
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.