MathGroup Archive 2001

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

Search the Archive

Re: Head wanted


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