Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: List Operation ?

  • To: mathgroup at
  • Subject: [mg40226] Re: List Operation ?
  • From: bobhanlon at (Bob Hanlon)
  • Date: Wed, 26 Mar 2003 02:44:26 -0500 (EST)
  • References: <b5qct7$blp$>
  • Sender: owner-wri-mathgroup at

list1[[All, {1,2,4}]]


Extract[#, {{1},{2},{4}}]& /@ list1

Drop[Take[#, 4],{3}]& /@ list1

Bob Hanlon

In article <b5qct7$blp$1 at>, Sunil Jayatilleke
<sunilj at> wrote:

<< Subject:	List Operation ?
From:		Sunil Jayatilleke <sunilj at>
To: mathgroup at
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 ?

  • Prev by Date: Re: proper way to manipulate lists?
  • Next by Date: Re: proper way to manipulate lists?
  • Previous by thread: Re: List Operation ?
  • Next by thread: RE: List Operation ?