From c093b83c9c5ad3ba92e9153569be6e27476403ea Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sat, 9 Dec 2023 12:23:02 +0000 Subject: Functions --- lessons/src/lesson014_higher_order_functions/text.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lessons/src/lesson014_higher_order_functions/text.html (limited to 'lessons/src/lesson014_higher_order_functions/text.html') 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 @@ +

+ In Gleam functions are values. They can be assigned to variables, passed to + other functions, and anything else you can do with values. +

+

+ Here the function add_one is being passed as an argument to the + twice function. +

+

+ Notice the fn keyword is also used to describe the type of the + function that twice takes as its second argument. +

-- cgit v1.2.3