partial

Syntax

partial(func, args...)

Arguments

func is a function.

args... are an incomplete list of the arguments of func.

Details

Create a partial application.

Examples

partial(add,1)(2);
// output
3

def f(a,b):a pow b
g=partial(f, 2)
g(3);
// output
8