Kaya 0.4.4 reference for Prelude::deref

List of functions and data types in Prelude

a deref(Maybe<a> v)

Arguments

Usage

Extract the value from a Maybe. An Exception is thrown if v is nothing. A case statemement is generally more appropriate unless it is known that the dereferencing should succeed (for example, using Dict::lookup on a key known to have been added). deref(x) is equivalent to x.val.

Related

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