Ruby - Blocks, Procs, and Lambdas
Given this code, what will be the output?
def repeat(n)
n.times { yield }
end
count = 0
repeat(3) do
count += 1
puts count
end