MathGroup Archive 1997

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

Search the Archive

Re:list manipulation problem


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