Kaya 0.5.2 module reference for Coercions

List of modules in this version

Coercions module

This modules defines function versions of the coercions between built-in types. string(x) is equivalent in function to the explicit coercion String(x) but as it may be applied as a function, it may be partially applied, used as a function parameter, etc.

Additionally, the coercion to Void is defined for discarding the output of a function with side-effects.

It is automatically imported (via the Prelude module) unless the -noprelude compiler option is used.

Functions

kaya@kayalang.org | Last modified 30 December 2008 | Supported by Durham CompSoc | Powered by Kaya