Re: ContainsQ ?
- To: mathgroup at smc.vnet.net
- Subject: [mg72575] Re: [mg72563] ContainsQ ?
- From: Carl Woll <carlw at wolfram.com>
- Date: Wed, 10 Jan 2007 02:46:58 -0500 (EST)
- References: <200701091229.HAA21425@smc.vnet.net>
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
- References:
- ContainsQ ?
- From: "Chris Chiasson" <chris@chiasson.name>
- ContainsQ ?