MathGroup Archive 1999

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

Search the Archive

Re: list of lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15472] Re: list of lists
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Mon, 18 Jan 1999 04:22:12 -0500
  • Organization: Universitaet Leipzig
  • References: <77jkin$2v6@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

some thing like:

EveryNth[lst_List,n_Integer]:=
  Module[{i},
    Part[lst,#] & /@ Table[i,{i,1,Length[lst],n}]
   ]

will help you.

Jens

wgrebe wrote:
> 
> Hallo,
> 
> I have a 2-dimensional list, which is very large. It consists of 1024
> sublists, each with 11 elements.
> I want to have a smaller list, where every 5th sublist is element. What
> can I do?
> 
> Thank you
>                                                 Witold
> 
> wgrebe at cityweb.de


  • Prev by Date: Re: using Part command
  • Next by Date: Re: Parts of a list
  • Previous by thread: Re: list of lists
  • Next by thread: Re: list of lists