MathGroup Archive 2009

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

Search the Archive

Re: Select any

  • To: mathgroup at
  • Subject: [mg101953] Re: [mg101939] Select any
  • From: Leonid Shifrin <lshifr at>
  • Date: Fri, 24 Jul 2009 06:12:16 -0400 (EDT)
  • References: <>


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.


On Thu, Jul 23, 2009 at 12:57 AM, Niko < at> wrote:

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

  • References:
    • Select any
      • From: Niko <>
  • 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