2 people like it.
Like the snippet!
A simple function that creates a counter function (with localized mutable state).
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: |
|
Link: | http://fssnip.net/lY |
Posted: | 10 years ago |
Author: | Tomas Petricek |
Tags: | mutation , reference cell |