Prelude::Maybe<a>
Constructors
- nothing()
- just(a val)
Usage
A value is either of type a, represented as just(a), or empty. Maybe is often useful for computations which can possibly fail, for example looking up values in a dictionary. Because the nothing value can be stored, this is often more useful than Exceptions on failure.