Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simplify closure example

  • Loading branch information...
commit c97564c6c19a861cb7b3e3ecebf5ed9c11d931f2 1 parent 3ce0c69
@bakkdoor authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 examples/closures.fy
View
5 examples/closures.fy
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.