Design a dyadic function 'par' that will partition y items into x
partitions. For example:

3 par 5

┌─────┬─────┬─────┐

│0    │1    │2 3 4│

├─────┼─────┼─────┤

│0    │1 2  │3 4  │

├─────┼─────┼─────┤

│0    │1 2 3│4    │

├─────┼─────┼─────┤

│0 1  │2    │3 4  │

├─────┼─────┼─────┤

│0 1  │2 3  │4    │

├─────┼─────┼─────┤

│0 1 2│3    │4    │

└─────┴─────┴─────┘



Skip Cave
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to