WLJS LogoWLJS Notebook

CurryApplied

CurryApplied[f, n] represents an operator form of the function f of n arguments so that CurryApplied[f, n][x1]...[xn] is equivalent to f[x1, ..., xn].

CurryApplied[n] represents an operator form of CurryApplied that can be applied to a function to represent an operator form with n arguments.

CurryApplied[f, {i1, ..., in}] represents an operator form of the function f of n arguments so that CurryApplied[f, {i1, ..., in}][x1]...[xn] is equivalent to f[xi1, ..., xin].

CurryApplied[f, k -> {i1, ..., in}] represents an operator form that takes k arguments.

Examples

Curry a function of two arguments:

CurryApplied[Plus, 2][3][5]
(* 8 *)

Please visit the official Wolfram Language Reference for more details.

On this page