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>
- Select any