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.
More Related Contents:
- Apache Spark – Scala – ReduceByKey – with keys repeating up to twice only
- Spark – load CSV file as DataFrame?
- What is the difference between a var and val definition in Scala?
- What is a higher kinded type in Scala?
- What is the apply function in Scala?
- Confused with the for-comprehension to flatMap/Map transformation
- Underscore in Named Arguments
- How to import build.gradle into IntelliJ
- sbt-assembly: deduplication found error
- What does param: _* mean in Scala?
- Spark dataframe write method writing many small files
- Syntax sugar: _* for treating Seq as method parameters
- Scala 2.8 collections design tutorial
- java.lang.NoClassDefFoundError: org/apache/spark/streaming/twitter/TwitterUtils$ while running TwitterPopularTags
- How to use COGROUP for large datasets
- Scala classOf for type parameter
- What are possible reasons for receiving TimeoutException: Futures timed out after [n seconds] when working with Spark [duplicate]
- Why does join fail with “java.util.concurrent.TimeoutException: Futures timed out after [300 seconds]”?
- Create new Dataframe with empty/null field values
- Why does Scala provide both multiple parameters lists and multiple parameters per list? [duplicate]
- In Scala, what does “view” do?
- How to write a proper null-safe coalescing operator in scala?
- How to explode an array into multiple columns in Spark
- forall in Scala
- Treating an SQL ResultSet like a Scala Stream
- Scala asInstanceOf with parameterized types
- Queries with streaming sources must be executed with writeStream.start();
- How do I run an sbt main class from the shell as normal command-line program?
- Singletons as Synthetic classes in Scala?
- Akka-Stream implementation slower than single threaded implementation