MathGroup Archive 2009

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

Search the Archive

Re: Select any

  • To: mathgroup at smc.vnet.net
  • Subject: [mg101953] Re: [mg101939] Select any
  • From: Leonid Shifrin <lshifr at gmail.com>
  • Date: Fri, 24 Jul 2009 06:12:16 -0400 (EDT)
  • References: <200907230757.DAA26946@smc.vnet.net>

Niko,

If you check out the documentation, you will immediately see that
Select command does what you ask. If by "any" you mean all elements,
this is just Select[yourlist, criteria], if you mean the first element that
satisfies the criteria, it is Select[yourlist,criteria,1]. You can also use
Cases to select based on patterns.

Regards,
Leonid





On Thu, Jul 23, 2009 at 12:57 AM, Niko <niko.schwarz at googlemail.com> wrote:

> 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: Please help debug this set of simple diff eqs- having trouble with
  • Next by Date: Re: Select any
  • Previous by thread: Re: Select any
  • Next by thread: Re: Select any