Bruno Antunes wrote: > On 13-07-2010 17:30, Abder-Rahman Ali wrote: >> >> Thanks. > > a = [1,2,3].find {|x| x > 3} > > puts a > > > In this (maybe too simple) example, x is garbage-collected once flow > leaves the block. Thanks Bruno. But, I'm always getting as output: 1 2 3 Even if I type {|x| x < 3} Isn't your program trying to say find the values > 3 ? In other words, why don't I get some sort of error since I'm requesting something not here? > 3 Thanks. -- Posted via http://www.ruby-forum.com/.