finding all definitions matching a pattern
- To: mathgroup at smc.vnet.net
- Subject: [mg98004] finding all definitions matching a pattern
- From: Roman <rschmied at gmail.com>
- Date: Fri, 27 Mar 2009 05:38:38 -0500 (EST)
Dear Mathematica user: Assume we have a number of definitions associated with a symbol F, for example: F[0] = 3; F[1] = 7; F[3] = 11; What I need is an automated way to generate the list of definitions, something like In[1] := getdefs[F] Out[1] = {{0,3},{1,7},{3,11}} Would you know how to write this function "getdefs"? I am having trouble extracting any useful information from a call to Definition[F] since it seems to wrap its output somehow. Thanks! Roman.
- Follow-Ups:
- Re: finding all definitions matching a pattern
- From: Fernando Cucchietti <fernando.cucchietti@icfo.es>
- Re: finding all definitions matching a pattern