How do I get the number of arguments of a function? for instance, f(x, y) = x + y
I want something like num_args(f), which will give me back 2. If the function has multiple methods then something more general would be nice, but so far I only care about functions with just a single method. Is there something like this? thanks alot!!