MathGroup Archive 2005

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

Search the Archive

Extracting information from lists

  • To: mathgroup at
  • Subject: [mg63323] Extracting information from lists
  • From: "Tony King" <mathstutoring at>
  • Date: Sat, 24 Dec 2005 07:18:50 -0500 (EST)
  • Sender: owner-wri-mathgroup at

Does anyone know of a function that will allow me to extract the positions 
of the first elements of runs of similar elements within a list. For 
example, suppose that


I need a function that will return


corresponding to the runs {1},{1,1},{1,1,1},{1,1,1,1} within list

Many thanks


  • Prev by Date: Re: problems with memory usage
  • Next by Date: Re: does this shut down anyone else's kernel?
  • Previous by thread: Re: Gaussian sums (Was: Speeding up simple Mathematica expressions?)
  • Next by thread: Re: Extracting information from lists