From: Bob Hutchison Date: 2007-10-24T22:40:39+09:00 Subject: Re: pop/push, shift/unshift On 24-Oct-07, at 9:03 AM, Todd Benson wrote: > def dequeue > @list.shift > end Save yourself some grief, do it this way: def dequeue tmp = @list[0] @list[0] = nil @list.shift tmp end Cheers, Bob ---- Bob Hutchison -- tumblelog at http:// www.recursive.ca/so/ Recursive Design Inc. -- weblog at http://www.recursive.ca/ hutch http://www.recursive.ca/ -- works on http://www.raconteur.info/ cms-for-static-content/home/