in reply to Re^4: Incrementing string arrays when used with foreach loops
in thread Incrementing string arrays when used with foreach loops
I associate the top of the deck with the start of the deck, and thus the start of the array. And I usually see push/shift used for queues, not unshift/pop. There's nothing stopping you from using the latter, but you have to start using negative offsets to index and splice the array.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Incrementing string arrays when used with foreach loops
by tilly (Archbishop) on Sep 16, 2008 at 06:30 UTC |