The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Use chain for composable error handling with nested Eithers

Use chain for composable error handling with nested Eithers

3:57
We refactor a function that uses try/catch to a single composed expression using Either. We then introduce the chain function to deal with nested Eithers resulting from two try/catch calls.
Watch this lesson now
Avatar
egghead.io

We refactor a function that uses try/catch to a single composed expression using Either. We then introduce the chain function to deal with nested Eithers resulting from two try/catch calls.

Avatar
Brian Lonsdorf

I'm not sure I understand your question. Can you clarify? Either is the actual monad here chain is >>=

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?