call

Syntax

call(func, args...)

Arguments

func is a function.

args are the required parameters of func.

Details

Call a function with the specified parameters. It is often used with function each/peach or loop/ploop to call multiple functions.

Examples

call(sum, 1..10);
// output
55
// equivalent to sum(1..10)

each(call, [avg, sum], [0..10, 0..100]);
// output
[5,5050]

each(call{, 1..3},(sin,log));
// note that call{, 1..3} is a partial application.
sin log
0.841471 0
0.909297 0.693147
0.14112 1.098612