Skip to content

Commit

Permalink
Fix 01-The-Function-Monad.md typo (#613)
Browse files Browse the repository at this point in the history
Fix a wrongly named parameter "argument" into correct name "input", which corresponds to the lambda parameter.
  • Loading branch information
kettroni committed Nov 16, 2023
1 parent fcf21fe commit df5bc4d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -363,7 +363,7 @@ class Functor ((->) inputType) where
(originalOutputType -> newOutputType) ->
(inputType -> originalOutputType) -> (inputType -> newOutputType)
map originalToNew f = (\input ->
let originalOutput = f argument
let originalOutput = f input
in originalToNew originalOutput)

class (Functor ((->) inputType)) <= Apply ((->) inputType) where
Expand Down

0 comments on commit df5bc4d

Please sign in to comment.