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