Recover from a Nothing with the `coalesce` Method

Andy Van Slaars
InstructorAndy Van Slaars

Share this video with your friends

Send Tweet

The alt method allows us to recover from a nothing with a default Maybe, but sometimes our recovery efforts might need to enlist some logic to recover properly. In this lesson, we’ll see how we can use the coalesce method on the Maybe to recover from a Nothing by calling a function.

Tre' Codez
Tre' Codez
~ 3 years ago

So, coalesce is like Either.