diff options
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/chapter1_functions/lesson06_generic_functions/code.gleam | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content/chapter1_functions/lesson06_generic_functions/code.gleam b/src/content/chapter1_functions/lesson06_generic_functions/code.gleam index e232bf8..2233c4c 100644 --- a/src/content/chapter1_functions/lesson06_generic_functions/code.gleam +++ b/src/content/chapter1_functions/lesson06_generic_functions/code.gleam @@ -14,6 +14,8 @@ pub fn main() { io.debug(twice("Hello", exclaim)) } +// The function signature (below) states that the type of +// `value` must be the same in all 4 places: fn twice(argument: value, function: fn(value) -> value) -> value { function(function(argument)) } |