Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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 ?