aboutsummaryrefslogtreecommitdiff
path: root/src/content/chapter1_functions/lesson03_higher_order_functions
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2024-03-14 18:42:00 +0000
committerLouis Pilfold <louis@lpil.uk>2024-03-14 18:42:00 +0000
commit13ca259355e90d135c1d1055d4ed17ce2aa7c1e3 (patch)
tree092dd162f1bfdddccefd7c6d0093c8f9a1b06998 /src/content/chapter1_functions/lesson03_higher_order_functions
parentc60b93e35a042e269ae47f3da0c3040527a0eaaa (diff)
downloadtour-13ca259355e90d135c1d1055d4ed17ce2aa7c1e3.tar.gz
tour-13ca259355e90d135c1d1055d4ed17ce2aa7c1e3.zip
Remove functions
Closes https://github.com/gleam-lang/language-tour/issues/52
Diffstat (limited to 'src/content/chapter1_functions/lesson03_higher_order_functions')
-rw-r--r--src/content/chapter1_functions/lesson03_higher_order_functions/code.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/chapter1_functions/lesson03_higher_order_functions/code.gleam b/src/content/chapter1_functions/lesson03_higher_order_functions/code.gleam
index 4301ce5..43b6ca4 100644
--- a/src/content/chapter1_functions/lesson03_higher_order_functions/code.gleam
+++ b/src/content/chapter1_functions/lesson03_higher_order_functions/code.gleam
@@ -5,8 +5,8 @@ pub fn main() {
io.debug(twice(1, add_one))
// Functions can be assigned to variables
- let function = add_one
- io.debug(function(100))
+ let my_function = add_one
+ io.debug(my_function(100))
}
fn twice(argument: Int, passed_function: fn(Int) -> Int) -> Int {