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
- Follow-Ups:
- Re: Partitioning a list into unequal partitions
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Re: Partitioning a list into unequal partitions