Create a Maybe with a `safe` Utility Function

InstructorAndy Van Slaars

Share this video with your friends

Send Tweet

In this lesson, we’ll create a safe function that gives us a flexible way to create Maybes based on a value and a predicate function that we supply. We’ll verify its behavior with values that satisfy the predicate, and values that do not.