Permalink
Browse files

simplify closure example

  • Loading branch information...
1 parent 3ce0c69 commit c97564c6c19a861cb7b3e3ecebf5ed9c11d931f2 @bakkdoor committed Nov 14, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 examples/closures.fy
View
@@ -3,10 +3,7 @@
# method that returns a closure
def create_counter: number {
- closure = {
- number = number + 1
- }
- closure
+ { number = number + 1 }
}
# create a counter from 100 upwards

0 comments on commit c97564c

Please sign in to comment.