This website requires JavaScript.
Explore
Help
Sign In
smits
/
ruby-uebungen
Watch
1
Star
3
Fork
You've already forked ruby-uebungen
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
25d5ac7ffd
ruby-uebungen
/
Assignment_023
/
solution
/
readme.md
516 B
Raw
Blame
History
Lösung: Closure
```ruby def create_counter n = 0 # closure Proc.new { n += 1 } end
p = create_counter puts p.call # -> 1 puts p.call # -> 2