in reply to Re: Re: round-robin on varying sequence
in thread round-robin on varying sequence
Agreed, splice was the wrong idea. How do you like this one?
sub remove_items { $index -= grep { $_ < $index } @_; delete @items[@_]; @items = grep {defined} @items; }
I dislike the use of broader scoped $index and @items in this.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: round-robin on varying sequence
by BrowserUk (Patriarch) on Sep 07, 2002 at 08:02 UTC |