in reply to Re^2: Spliting array into nested sequential arrays
in thread Spliting array into nested sequential arrays
It's not so much being succinct, although clean code often is. The key bits are:
although upon reflection I'd change @lists = grep{scalar @$_} @lists; to splice @lists, $smallest, 1 if !@{$lists[$smallest]};.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Spliting array into nested sequential arrays
by boftx (Deacon) on Oct 29, 2014 at 04:00 UTC |