Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*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 2004

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

Search the Archive

Partitioning a list into unequal partitions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg47454] Partitioning a list into unequal partitions
  • From: "DIAMOND Mark R." <dot at dot.dot>
  • Date: Tue, 13 Apr 2004 06:26:07 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Could someone please show me a simple (non-procedural) way of partitioning a
list into 1,2,3 ... n disjoint sublists, where the length of the list is
guaranteed to be correct (i.e. n*(n+1)/2)

I can't see a way, and yet I'm sure there *must* be a one-liner using Fold.

Cheers

Mark R. Diamond





  • Prev by Date: Finding order of a given differential equation and converting a diff. eqn. to matrix form
  • Next by Date: Regarding a 3D plot in mathematica
  • Previous by thread: Finding order of a given differential equation and converting a diff. eqn. to matrix form
  • Next by thread: Re: Partitioning a list into unequal partitions