Question: How do I find a list of variables in a function?

Hi everyone,

Is there a way that Maple can return a list of variables in a function? For example, if I have something like:
f:=(x,y)->x^2+y^2;
I would like Maple to return:
{x,y}

I found the indets command, but it does not seem to work for functions. For example:
f:=x^2+y^2; indets(f);  returns {x,y} but     f:=(x,y)->x^2+y^2; indets(f);    returns {f}

Any help would be appreciated.

Please Wait...