aboutsummaryrefslogtreecommitdiff
path: root/lessons/src/lesson014_higher_order_functions/text.html
diff options
context:
space:
mode:
Diffstat (limited to 'lessons/src/lesson014_higher_order_functions/text.html')
-rw-r--r--lessons/src/lesson014_higher_order_functions/text.html12
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>