fe2c1c6eb6 | ||
---|---|---|
.. | ||
readme.md |
readme.md
Lösung: Closure
p = create_counter puts p.call # -> 1 puts p.call # -> 2
fe2c1c6eb6 | ||
---|---|---|
.. | ||
readme.md |
p = create_counter puts p.call # -> 1 puts p.call # -> 2