Ruby - Blocks, Procs, and Lambdas
What will this Ruby code print?
def count_down(n)
while n > 0
yield n
n -= 1
end
end
count_down(3) { |i| puts i * 2 }