Re: Conditional drop of list elements
- To: mathgroup at smc.vnet.net
- Subject: [mg63573] Re: [mg63557] Conditional drop of list elements
- From: ggroup at sarj.ca
- Date: Thu, 5 Jan 2006 06:02:43 -0500 (EST)
- References: <200601050812.DAA19845@smc.vnet.net>
- Reply-to: ggroup at sarj.ca
- Sender: owner-wri-mathgroup at wolfram.com
On Thursday, January 5, 2006 at 03:12 GMT -0500, Lectorz wrote: <snip> > list1 = {{0,A,A,A}, {1,B,B,B}, {0,C,C,C}, {1,D,D,D}, {1,F,F,F}, > {0,G,G,G}, {0,H,H,H}} > Every 1st element of the each sublist should be checked. Is the first > element a ZERO, this sublist should be removed from the list. If it is > a ONE - this sublist remains in the list. Select[list1, #[[1]]==1&]
- References:
- Conditional drop of list elements
- From: "LectorZ" <lectorz@mail.ru>
- Conditional drop of list elements