diff options
Diffstat (limited to 'src/content/chapter1_functions/lesson04_anonymous_functions')
-rw-r--r-- | src/content/chapter1_functions/lesson04_anonymous_functions/code.gleam | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/chapter1_functions/lesson04_anonymous_functions/code.gleam b/src/content/chapter1_functions/lesson04_anonymous_functions/code.gleam index 2b037e0..e58659a 100644 --- a/src/content/chapter1_functions/lesson04_anonymous_functions/code.gleam +++ b/src/content/chapter1_functions/lesson04_anonymous_functions/code.gleam @@ -9,6 +9,6 @@ pub fn main() { io.debug(twice(1, fn(a) { a * 2 })) } -fn twice(argument: Int, function: fn(Int) -> Int) -> Int { - function(function(argument)) +fn twice(argument: Int, my_function: fn(Int) -> Int) -> Int { + my_function(my_function(argument)) } |