sdk-common / com.tomtom.online.sdk.common.functional / Function2 / curried

curried

open fun curried(): ((A1) -> ((A2) -> R)!)!

Returns a curried version of this function. In functional programming currying is a an operation that transforms a function that takes several arguments and returns a result (f: (P x Q) -> R) into a function that takes one argument and returns a function (g: P -> (Q -> R)). This allows to reason about functions with multiple arguments in simpler theoretical models which provide only one argument.

Return
((A1) -> ((A2) -> R)!)!: a curried function equivalent to this.