Re: Obtaining information about function definitions
- To: mathgroup at smc.vnet.net
- Subject: [mg114807] Re: Obtaining information about function definitions
- From: Fred Simons <f.h.simons at tue.nl>
- Date: Fri, 17 Dec 2010 06:21:36 -0500 (EST)
Hi Tom,
This is one way it can be done:
f["abc"][x_] := 1;
f["def"][x_] := 2;
f["ghi"][x_] := 3;
Cases[SubValues[f], HoldPattern[f[x_][_]] :> x, {3}]
Regards,
Fred Simons
Eindhoven University of Technology