MathGroup Archive 2007

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

Search the Archive

Re: ContainsQ ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72582] Re: ContainsQ ?
  • From: Peter Pein <petsie at dordos.net>
  • Date: Wed, 10 Jan 2007 03:15:06 -0500 (EST)
  • References: <eo00nr$kma$1@smc.vnet.net>

Chris Chiasson schrieb:
> Is there something like ContainsQ that means !FreeQ?
> 

Hi Chris,


ContainsQ = MemberQ[#1, #2, Infinity, Heads -> True]&

should do it.

Peter


  • Prev by Date: Re: ContainsQ ?
  • Next by Date: Re: How to export txt files with variable name &
  • Previous by thread: Re: ContainsQ ?
  • Next by thread: Re: ContainsQ ?