Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1997
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

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

Search the Archive

Re: list manipulation problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg9096] Re: list manipulation problem
  • From: jason at pernet.com (Jason Welter)
  • Date: Mon, 13 Oct 1997 23:33:11 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

On 9 Oct 1997 01:42:53 -0400, Teemu Vesanen <Teemu.Vesanen at sci.fi>
wrote:

>I have a list like
>{{a, b, c}, {d, e, f}, {g, h, i}}
>I need to delete the third term of each sublist.
>In other words how do I make the list look like
>{{a, b}, {d, e}, {g, h}}

lista = {{a, b, c}, {d, e, f}, {g, h, i}};
answer = Transpose[{Transpose[lista][[1]],Transpose[lista][[2]]}];



  • Prev by Date: RE:
  • Next by Date: Re: list manipulation problem
  • Previous by thread: Re: list manipulation problem
  • Next by thread: Re: list manipulation problem