KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Given a function that takes a variable number of arguments, e.g. def foo(os: String*) = println(os.toList) How can I pass a sequence of arguments to the function? I would like to write: val args = Seq("hi", "there") foo(args) Obviously, this does not work.
Tags (comma-separated)
Save Edits
Cancel