Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*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 2006

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

Search the Archive

Re: Extract values and multilpicities from list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64882] Re: Extract values and multilpicities from list
  • From: "Mark Adler" <madler at alumni.caltech.edu>
  • Date: Mon, 6 Mar 2006 05:01:46 -0500 (EST)
  • References: <due96k$ach$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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