It’s a two step procedure. First turn foo into a function, then call tupled on it to make it a function of a tuple.
(foo _).tupled(getParams)
More Related Contents:
- Why and how is Scala treating a tuple specially when calling a one arg function?
- Is there way to create tuple from list(without codegeneration)?
- Use functional combinators on Scala Tuples?
- Are HLists nothing more than a convoluted way of writing tuples?
- Is it possible to have tuple assignment to variables in Scala? [duplicate]
- Apache Spark – Scala – ReduceByKey – with keys repeating up to twice only
- What is the difference between a var and val definition in Scala?
- What is the apply function in Scala?
- How do I apply the enrich-my-library pattern to Scala collections?
- How to import build.gradle into IntelliJ
- How to model type-safe enum types?
- Scala: List[Future] to Future[List] disregarding failed futures
- Scala 2.8 collections design tutorial
- Scala classOf for type parameter
- val and object inside a scala class?
- Implicit keyword before a parameter in anonymous function in Scala
- What are possible reasons for receiving TimeoutException: Futures timed out after [n seconds] when working with Spark [duplicate]
- Parsing multiline records in Scala
- In Scala 2, type inference fails on Set made with .toSet?
- What does a lazy val do?
- Explanation of fold method of spark RDD
- Play: How to implement action composition
- How to write a proper null-safe coalescing operator in scala?
- Can’t access Parent’s Members while dealing with Macro Annotations
- Why is join not possible after show operator?
- How to wait for several Futures?
- assembly-merge-strategy issues using sbt-assembly
- How to create a Dataset of Maps?
- Spark ML VectorAssembler returns strange output