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);
3

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