Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

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

Search the Archive

Re: How do I use BooleanSelect?

  • To: mathgroup at
  • Subject: [mg6405] Re: [mg6390] How do I use BooleanSelect?
  • From: BobHanlon at
  • Date: Sun, 16 Mar 1997 19:25:20 -0500 (EST)
  • Sender: owner-wri-mathgroup at


testa = {1,2,3,4,-2,y,6,7};

The second input to BooleanSelect must also be a lsit.  For example, for 

BooleanSelect[testa, NumberQ /@ testa]


However, for this case just use Select:

Select[testa, NumberQ]


For testb:

BooleanSelect[testb, (FreeQ[#, -2] && FreeQ[#, -200])& /@ testb]


Likewise, use Select

Select[testb, FreeQ[#, -2] && FreeQ[#, -200]&]


BooleanSelect is useful when the Boolean list is a second independent input.

Bob Hanlon

  • Prev by Date: Outer Question
  • Next by Date: Mathematica Journal Article electronic submission mystery
  • Previous by thread: How do I use BooleanSelect?
  • Next by thread: How do I use BooleanSelect?