MathGroup Archive 2006

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

Search the Archive

Re: Extract values and multilpicities from list


The function Split[] already does this.  Your particular output format
can be generated thusly:

{First[#], Length[#]} & /@ Split[Sort[a]]

mark


  • Prev by Date: Re: mathematica to word
  • Next by Date: Numerical solutions of SDE
  • Previous by thread: Re: Extract values and multilpicities from list
  • Next by thread: Re: Extract values and multilpicities from list