From 27056541774dc0f03fd07e2af4ce8a4d0edf3d3d Mon Sep 17 00:00:00 2001 From: The-One-Who-Speaks-and-Depicts Date: Sun, 28 Aug 2022 13:04:49 +0400 Subject: [PATCH] fix: function commentary order --- content/posts/currying/index.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/content/posts/currying/index.md b/content/posts/currying/index.md index daae18f93..50fe327d1 100644 --- a/content/posts/currying/index.md +++ b/content/posts/currying/index.md @@ -184,15 +184,17 @@ let multiParamFn (p1:int)(p2:bool)(p3:string)(p4:float)= () //do nothing let intermediateFn1 = multiParamFn 42 - // intermediateFn1 takes a bool - // and returns a new function (string -> float -> unit) + // intermediateFn1 takes an int + // and returns a new function (bool -> string -> float -> unit) let intermediateFn2 = intermediateFn1 false - // intermediateFn2 takes a string - // and returns a new function (float -> unit) + // intermediateFn2 takes a bool + // and returns a new function (string -> float -> unit) let intermediateFn3 = intermediateFn2 "hello" - // intermediateFn3 takes a float - // and returns a simple value (unit) + // intermediateFn3 takes a string + // and returns a new function (float -> unit) let finalResult = intermediateFn3 3.141 + // finalResult takes a float + // and returns a simple value (unit) ``` The signature of the overall function is: