Re: List Operation ?
- To: mathgroup at smc.vnet.net
- Subject: [mg40226] Re: List Operation ?
- From: bobhanlon at aol.com (Bob Hanlon)
- Date: Wed, 26 Mar 2003 02:44:26 -0500 (EST)
- References: <b5qct7$blp$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
list1[[All, {1,2,4}]] list1/.{a_,b_,c_,d_,e_,f_}:>{a,b,d} Extract[#, {{1},{2},{4}}]& /@ list1 Drop[Take[#, 4],{3}]& /@ list1 Bob Hanlon In article <b5qct7$blp$1 at smc.vnet.net>, Sunil Jayatilleke <sunilj at physics.uc.edu> wrote: << Subject: List Operation ? From: Sunil Jayatilleke <sunilj at physics.uc.edu> To: mathgroup at smc.vnet.net Date: Tue, 25 Mar 2003 20:07:03 +0000 (UTC) I have a list as follows list1 = {{a1,b1,c1,d1,e1,f1},{a2,b2,c2,d2,e2,f2},{............}.............} Now I want to do the following list2 ={{a1,b1,d1},{a2,b2,d2}......................} How can I do that ? >><BR><BR>