Ruby - Basics and Runtime
Given this code, what will be the output?
def counter
count = 0
lambda do
count += 1
end
end
c = counter
puts c.call
puts c.call