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

MathGroup Archive 1998

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

Search the Archive

Re: List Manipulation



Hi Paul,

A simple way to do this problem is to use Partition and First. If

list = {{n1},{n2},...{2n}}

then

First/@Partition[list,2]

should do the trick

Carl Woll
Dept of Physics
U of Washington

On Fri, 16 Jan 1998 Paul.Hanson@colorado.edu wrote:

> Hola!
>   Hope you're all doing well.  If I have a list of n lists, and want to
> get rid of all the even ones how would I go about doing  this?  That
> is, {{n1},{n2},.....{2n}} converted to {{n1},{n3}...{2n-1}}. I tried
> using the various procedures in Wolfram's book, but nothing seems to
> work (ie, Delete, Take, etc.).  Thanks for the help.
> 
> Paul Hanson
> 
> -- 
> 				 * * 
>                                 *    *
>                            /\    */\*
>                           /  \   /  \ /\
> 
> 




  • Prev by Date: Re: Plotting vector-valued functions
  • Next by Date: ParametricPlot3D Question
  • Prev by thread: RE: List Manipulation
  • Next by thread: Re: List Manipulation