Know your closures: Ruby's blocks, procs, and lambdas 14 years agoIn your example:ampersandy(10) do |x| x + 10 end# => 10Actually the result should be '20' as well. 0ThreadHN