Question: batch arguments to a procedure with multiple inputs

Hi all,

 

Toy example

myproc:=proc(a,b,c) a*b*c; end proc;

myproc(1,3,4);

myproc(2,3,4);

myproc(5,2,1);


is there a way to input all these together? say myproc({1,3,4},{2,3,4},{5,2,1});

and then get an ouput in the end (list, Vector, array or whatever sensible format)

I remember seeing an example of doing that somewhere, but couldnt find it again...

 

Thanks!

 

Casper

Please Wait...