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: [mg9086] Re:[mg9062] list manipulation problem
  • From: tgarza at mail.internet.com.mx
  • Date: Mon, 13 Oct 1997 23:33:03 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Teemu: Try this.

ex={{a,b,c},{c,d,e},{f,g,h}};
dr[a_]:=Drop[a,-1];
dr/@ex

will give you

{{a,b},{c,d},{f,g}}

Tomas


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