Skip to content

Instantly share code, notes, and snippets.

@iamdionysus
Created January 8, 2019 09:44
Show Gist options
  • Save iamdionysus/1c9d90596ec526393f085336570fe5fc to your computer and use it in GitHub Desktop.
Save iamdionysus/1c9d90596ec526393f085336570fe5fc to your computer and use it in GitHub Desktop.
Scala: Pass Seq to var-args function
def foo(os: String*) = os.toList.foreach(println)
val args = Seq("hi", "there")
foo(args:_*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment