So deal.
sub split_to_n { my @buckets = map {[]} 1..shift; while (@_) { my $b = shift @buckets; push @$b, shift; push @buckets, $b; } @buckets; }
In reply to Re: Filling buckets
by tilly
in thread Filling buckets
by meonkeys
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |