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



If 


    A = {{N1},{N2},...,{Nm}}

with m even, then

    First[Transpose[Partition[A, 2]]]

gives the desired list.

--Lou Talman

Begin forwarded message:

From: Paul.Hanson@colorado.edu
To: mathgroup@smc.vnet.net
Subject: [mg10523] [mg10471] List Manipulation Organization: University of
Colorado at Boulder

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: HELP: How to increase the resolution of .GIF images when importing to HTML ?
  • Next by Date: Re: Impossible?
  • Prev by thread: Re: List Manipulation
  • Next by thread: RE: List Manipulation