๐Closures WorkshopWORKSHOP
1
2
3
4
5
Step 1
Write `makeCounter() func() int` that returns a closure. Each call to the returned function should increment an internal counter by 1 and return the new value. The counter starts at 0.
โ Enter (Mac) ยท Ctrl+Enter (Win/Linux)