def foo(msf: String, o: AnyRef, os: AnyRef*) =
println( String.format(msf, (o :: os.toList).toArray : _* ))
More Related Contents:
- What is the type of a variable-length argument list in Scala?
- Error with varargs for function-objects in Scala?
- Combining two lists into one in Scala
- What is the eta expansion in Scala?
- Read entire file in Scala?
- How to define schema for custom type in Spark SQL?
- Specifying the filename when saving a DataFrame as a CSV [duplicate]
- Spark unionAll multiple dataframes
- How can I pass extra parameters to UDFs in Spark SQL?
- How to split a dataframe into dataframes with same column values?
- Spark performance for Scala vs Python
- How to use regex to include/exclude some input files in sc.textFile?
- How to write spark streaming DF to Kafka topic
- Stackoverflow due to long RDD Lineage
- sender inside a future
- When and why should one use Applicative Functors in Scala
- What’s the easiest way to use reify (get an AST of) an expression in Scala?
- Provide schema while reading csv file as a dataframe in Scala Spark
- Is there way to create tuple from list(without codegeneration)?
- What is a function literal in Scala?
- What are Scala continuations and why use them?
- Can’t prove that singleton types are singleton types while generating type class instance
- Clarification needed about futures and promises in Scala
- Difference between MutableList and ListBuffer
- Creating a method definition tree from a method symbol and a body
- forall in Scala
- Scala asInstanceOf with parameterized types
- How do I run an sbt main class from the shell as normal command-line program?
- Akka-Stream implementation slower than single threaded implementation
- Spark ML VectorAssembler returns strange output