Kaya 0.4.4 reference for Prelude::Maybe

List of functions and data types in Prelude

Prelude::Maybe<a>

Constructors

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.

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya