From: zdennis Date: 2005-10-28T15:05:14+09:00 Subject: Re: difference between the each iterator and the collect iterator? Daniel Sheppard wrote: > It's the return value of those two methods > > [1,2,3,4].each { |x| x + 5 } will return [1,2,3,4] > > [1,2,3,4].each { |x| x + 5 } will return [6,7,8,9] I think Daniel means [1,2,3,4].collect { |x| x + 5 } will return [6,7,8,9] Zach