I wonder if there are any plans for currying support on giac.
At the moment, e.g., the statement below does not work in giac, although it is fine in Maple.
cfn := x->y->z->(x+y)*z
[ cfn(3)(4)(5) => 35 ]
the giac error is
Code : Tout sélectionner
// Error(s)
// End defining fn
undef
:1: syntax error, unexpected T_MAPSTO line 1 col 13 at ->
:1: syntax error, unexpected T_MAPSTO line 1 col 13 at ->
:1: syntax error, unexpected T_MAPSTO line 1 col 13 at ->
cfn := x->(y->(z->(x+y)*z))
which (sort of) works, but gives the following warnings
Code : Tout sélectionner
// Warning: x,y, declared as global variable(s)
// Warning: z,x, declared as global variable(s)
// Warning: y,z, declared as global variable(s)
// End defining cfn
(x)-> (y)-> (z)->(x+y)*z
Any comments/ideas?
PS.
I need this since I am trying to adapt Sussman and Wisdom's SICM code to XCAS/giac, but I may end up just using scheme bindings to giac.