MathGroup Archive 2010

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

Search the Archive

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


  • 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