MathGroup Archive 2001

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

Search the Archive

Re: Head wanted

  • To: mathgroup at smc.vnet.net
  • Subject: [mg29827] Re: Head wanted
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Fri, 13 Jul 2001 04:19:11 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <9ijhmt$rhn$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

have you understand what you ask ?

"all the symbols ...  having a prescribed Head"
         -------

what else should come out than Symbol ?

If you mean that the *value* of the symbols should have
a certain head than


ContextSelcet[context_String,hh_Symbol]:=
  Select[ToExpression /@ Names[context], Head[#] === hh &]

will work.

Regards
  Jens

Antoine Zahnd wrote:
> 
> Hi,
> 
> How is it possible to return all the symbols ( belonging to the current
> context ),  having a prescribed Head ?
> 
> Thank you very much for your help.
> 
> antoine.zahnd at iprolink.ch


  • Prev by Date: Printing Large Base-n Numbers
  • Next by Date: Re: Logic and Truth Tables with Mathematica?
  • Previous by thread: Re: Head wanted
  • Next by thread: kernel problem for trigonometry