DEV Community

Discussion on: Either: fp-ts

Collapse
 
waynevanson profile image
Wayne Van Son

Thanks for that!

mapLeft takes a function, which is why we provided makeError as the argument.

error does not exist unless you make exist by creating a variable from within a closure in mapLeft.