From: vasten@... Date: 2005-10-28T12:17:04+09:00 Subject: difference between the each iterator and the collect iterator? Hi: I am a newbie as far as Ruby is concerned. I was going through the programming ruby book (2nd Edition), but was not able to figure out the difference between the 2 statements: [1, 2, 3, 4].collect{[i] puts i } and [1, 2, 3, 4].each{|i| puts i } Can some guru in this group shed some light? Thanks.