groovy 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

  • closure.curry(parameter)
  • closure.rcurry(parameter)
  • closure.ncurry(index, parameters ...)

Remarks

  • Currying a closure produces a new closure with one or more of it's parameters having a fixed value

  • Left or right currying a closure that has no parameters or index based currying a closure that has less than two parameters throws an IllegalArgumentException



Got any groovy Question?