Call a function: Difference between revisions

Line 1,793:
<lang parigp>f(); \\ zero arguments
sin(Pi/2); \\ fixed number of arguments
Strvecsort("gg"[5,6]) 1,!= "hh"vecsort([5,6],,4); \\ variable number ofoptional arguments
Str("gg", 1, "hh") \\ variable number of arguments
call(Str, ["gg", 1, "hh"]) \\ variable number of arguments in a vector
(x->x^2)(3); \\ first-class
x = sin(0); \\ get function value</lang>