MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Obtaining information about function definitions


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


  • Prev by Date: Re: Help with Loop to Rule Based Algorithm
  • Next by Date: Entering full names (without replacement) in the front end
  • Previous by thread: Obtaining information about function definitions
  • Next by thread: Re: Obtaining information about function definitions