Scala Language Currying

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • aFunction(10)_ //Using '_' Tells the compiler that all the parameters in the rest of the parameter groups will be curried.
  • nArityFunction.curried //Converts an n-arity Function to an equivalent curried version
  • anotherFunction(x)(_: String)(z) // Currying an arbitrary parameter. It needs its type explicitly stated.


Got any Scala Language Question?