MathGroup Archive 2007

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

Search the Archive

Re: ContainsQ ?


Chris Chiasson wrote:

>Is there something like ContainsQ that means !FreeQ?
>
>  
>
There is MemberQ. It's not quite the opposite, because the default 
levels are different. Anyway,

MemberQ[list, form, {0, Infinity}]

is equivalent to

!FreeQ[list, form]

Similarly,

FreeQ[list, form, {1}]

and

!MemberQ[list, form]

are equivalent.

Carl Woll
Wolfram Research


  • Prev by Date: Re: Call-by-reference from inside a function
  • Next by Date: Re: Call-by-reference from inside a function
  • Previous by thread: ContainsQ ?
  • Next by thread: Re: ContainsQ ?