Question: how to call a procedure using named parameter binding in Maple?

March 13 2014 nm 455


I could not find a way to do this in Maple looking at

and I see that Maple is missing from

Is it possible to call a Maple proc using named parameters? Here is an example of what this looks like from a small Ada example from the above link:

procedure Foo (Arg_1 : Integer; Arg_2 : Float := 0.0);
Foo (Arg_2 => 0.0, Arg_1 => 1);

This is very useful for proc with many arguments, and it also makes the code much
more clear and less change in using the wrong value for the wrong parameter.

In Maple notation, this can be like

foo:=proc(arg1::integer,arg2::float) ..... end proc;

(This editor is so bad, can't someone fix it?)
Please Wait...