From 81cd2703e27d02231f70fd023d52a75fabcef53f Mon Sep 17 00:00:00 2001 From: human154 <46430360+human154@users.noreply.github.com> Date: Thu, 22 Feb 2024 08:37:49 -0500 Subject: Simplify my awkwrd comment about type variables --- src/content/chapter1_functions/lesson06_generic_functions/code.gleam | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/content/chapter1_functions') diff --git a/src/content/chapter1_functions/lesson06_generic_functions/code.gleam b/src/content/chapter1_functions/lesson06_generic_functions/code.gleam index 2233c4c..bdfcb4e 100644 --- a/src/content/chapter1_functions/lesson06_generic_functions/code.gleam +++ b/src/content/chapter1_functions/lesson06_generic_functions/code.gleam @@ -14,8 +14,7 @@ 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: +// The name value refers to the same type multiple times fn twice(argument: value, function: fn(value) -> value) -> value { function(function(argument)) } -- cgit v1.2.3