From: Steve Klabnik Date: 2011-07-24T13:12:08+09:00 Subject: Re: best style for setting items in a collection --00151773e524d9b8db04a8c8e669 Content-Type: text/plain; charset=ISO-8859-1 Upto isn't bad, but id probably use inject: [1,2,3].inject ([]) {|arr, elem| arr << arr.last + elem} I typed this on my phone, so apologies if it's slightly off. --00151773e524d9b8db04a8c8e669--