diff options
author | Louis Pilfold <louis@lpil.uk> | 2023-12-09 12:23:02 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2023-12-09 12:23:02 +0000 |
commit | c093b83c9c5ad3ba92e9153569be6e27476403ea (patch) | |
tree | 2c51eb3320985e4a79889e14d5027f5d3c97f3ed /lessons/src/lesson014_higher_order_functions/text.html | |
parent | 52a4e31a356e212ba537a241a3722848d9f0c93c (diff) | |
download | tour-c093b83c9c5ad3ba92e9153569be6e27476403ea.tar.gz tour-c093b83c9c5ad3ba92e9153569be6e27476403ea.zip |
Functions
Diffstat (limited to 'lessons/src/lesson014_higher_order_functions/text.html')
-rw-r--r-- | lessons/src/lesson014_higher_order_functions/text.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lessons/src/lesson014_higher_order_functions/text.html b/lessons/src/lesson014_higher_order_functions/text.html new file mode 100644 index 0000000..3343e4d --- /dev/null +++ b/lessons/src/lesson014_higher_order_functions/text.html @@ -0,0 +1,12 @@ +<p> + In Gleam functions are values. They can be assigned to variables, passed to + other functions, and anything else you can do with values. +</p> +<p> + Here the function <code>add_one</code> is being passed as an argument to the + <code>twice</code> function. +</p> +<p> + Notice the <code>fn</code> keyword is also used to describe the type of the + function that <code>twice</code> takes as its second argument. +</p> |