MathGroup Archive 2009

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

Search the Archive

Re: Select any

  • To: mathgroup at smc.vnet.net
  • Subject: [mg101947] Re: [mg101939] Select any
  • From: "Mitch Stonehocker" <mitch at aitoconsulting.com>
  • Date: Fri, 24 Jul 2009 06:11:09 -0400 (EDT)
  • References: <200907230757.DAA26946@smc.vnet.net>

Use Select.  For example:
 
data = {1, 2, 3, 4, 5};
Select[data, # > 3 &]

Cheers,
Mitch 

-----Original Message-----
From: Niko [mailto:niko.schwarz at googlemail.com] 
Sent: Thursday, July 23, 2009 3:58 AM
To: mathgroup at smc.vnet.net
Subject: [mg101947] [mg101939] Select any

does mathematica have something like "select any" that gets any
element of a list that satisfies a criterion?




  • References:
    • Select any
      • From: Niko <niko.schwarz@googlemail.com>
  • Prev by Date: Re: Aggregating data and graphing it
  • Next by Date: Re: Can you do something like yield in Mathematica?
  • Previous by thread: Select any
  • Next by thread: Re: Select any