1

If I have a method that looks like this:

def method(args: String*) = // something

And a sequence that looks like this:

val s = Seq("a", "b", "c")

How can I achieve the equivalent of this:

method(s)
Olshansky
  • 5,904
  • 8
  • 32
  • 47

1 Answers1

1

As @m-z mentioned, the answer is:

method(s:_*)
Olshansky
  • 5,904
  • 8
  • 32
  • 47