From: itsme213 Date: 2005-09-28T22:01:43+09:00 Subject: Re: creating independent lambdas in loops "ts" wrote in message news:200509281241.j8SCflhq021177@moulon.inra.fr... > >>>>> "M" == Michael Roth writes: > > M> a = [] > > M> for multi in [2, 3, 4, 5] > M> a << lambda do |n| > M> n * multi > M> end > M> end > > [2, 3, 4, 5].each do |multi| > a << lambda do |n| > n * multi > end > end Why the difference in behavior between these two?