It makes you able to do e.g.:
scala> def foo(as: Int*)(bs: Int*)(cs: Int*) = as.sum * bs.sum * cs.sum
foo: (as: Int*)(bs: Int*)(cs: Int*)Int
scala> foo(1, 2, 3)(4, 5, 6, 7, 9)(10, 11)
res7: Int = 3906
More Related Contents:
- What’s the difference between multiple parameters lists and multiple parameters per list in Scala?
- Scala currying vs partially applied functions
- Two ways of currying in Scala; what’s the use-case for each?
- What are the rules to govern underscore to define anonymous function?
- Usefulness (as in practical applications) of Currying v.s. Partial Application in Scala
- Applying an argument list to curried function using foldLeft in Scala
- Do scala constructor parameters default to private val?
- What do all of Scala’s symbolic operators mean?
- How can I pass extra parameters to UDFs in Spark SQL?
- Scala Futures – built in timeout?
- How to define a custom aggregation function to sum a column of Vectors?
- Better way to convert a string field into timestamp in Spark
- If an Int can’t be null, what does null.asInstanceOf[Int] mean?
- No configuration setting found for key ‘akka.version’
- scala – Any vs underscore in generics
- How do I access default parameter values via Scala reflection?
- What is a function literal in Scala?
- How do I make a function involving futures tail recursive?
- Apache Spark, add an “CASE WHEN … ELSE …” calculated column to an existing DataFrame
- How to suppress info and success messages in sbt?
- Replace null values in Spark DataFrame
- Scala: write string to file in one statement
- Scala: pass Seq to var-args functions
- Calculate Cosine Similarity Spark Dataframe
- Why does Scala support shadow variables? [closed]
- How can I convert immutable.Map to mutable.Map in Scala?
- Install sbt on ubuntu [closed]
- Should I use the final modifier when declaring case classes?
- Scala equivalent of Java’s Number
- Difference between two rows in Spark dataframe