diff options
author | Louis Pilfold <louis@lpil.uk> | 2023-12-21 14:03:41 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2023-12-21 14:03:41 +0000 |
commit | 4efb34bd728732101432843ed0bfbeb971272287 (patch) | |
tree | 71b3b767c417809d92280cec64424c31c9a475be /lessons/src/lesson016_function_captures/text.html | |
parent | 2a6ae1fa5408247c95bf4a7d59e5038342a2a125 (diff) | |
download | tour-4efb34bd728732101432843ed0bfbeb971272287.tar.gz tour-4efb34bd728732101432843ed0bfbeb971272287.zip |
Add chapters
Diffstat (limited to 'lessons/src/lesson016_function_captures/text.html')
-rw-r--r-- | lessons/src/lesson016_function_captures/text.html | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lessons/src/lesson016_function_captures/text.html b/lessons/src/lesson016_function_captures/text.html deleted file mode 100644 index afa87a3..0000000 --- a/lessons/src/lesson016_function_captures/text.html +++ /dev/null @@ -1,11 +0,0 @@ -<p> - Gleam has a shorthand syntax for creating anonymous functions that take one - argument and immediately call another function with that argument: the - function capture syntax. -</p> -<p> - The anonymous function <code>fn(a) { some_function(..., a, ...) }</code> can - be written as <code>some_function(..., _, ...)</code>, with any number of - other arguments passed to the inner function. The underscore <code>_</code> is - a placeholder for the final argument. -</p> |