Become a member
to unlock all features

    Create a Maybe with a `safe` Utility Function


    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.