From: Tom Stuart Date: 2009-11-25T01:16:12+09:00 Subject: Re: Difference between << and += for Strings and Arrays. Bug? 2009/11/24 Pieter Hugo : > I worked around with > > a = [1,2] > b = [] > b += a > b.pop > > Now b == [1] and a == [1,2], but its not as sleek. Is there maybe > another way? Depending on your needs, try a = [1, 2] b = a.dup b.pop or a = [1, 2] a.last Cheers, Tom