Or, for more variations on comb: https://rosettacode.org/wiki/Combinations#J
Thanks, -- Raul On Thu, Oct 19, 2017 at 11:51 AM, Raul Miller <[email protected]> wrote: > To define comb: > > require'stats' > > Thanks, > > -- > Raul > > > On Thu, Oct 19, 2017 at 10:31 AM, Linda Alvord <[email protected]> > wrote: >> We need your definition of comb. >> >> Linda >> >> Sent from AOL Mobile Mail >> >> On Thursday, October 19, 2017 Henry Rich <[email protected]> wrote: >> par =: 2 (}. i.)&.>/\"1 0: ,. (comb&.<:) ,. ] Henry Rich >> >> On 10/19/2017 9:53 AM, 'Skip Cave' via Programming wrote: > 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 --- This >> email has been checked for viruses by AVG. http://www.avg.com >> ---------------------------------------------------------------------- For >> information about J forums see http://www.jsoftware.com/forums.htm >> >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
