Kaya 0.5.3 reference for Builtins::identity

List of functions and data types in Builtins

a identity(a val)

Usage

Returns a new reference to the original value - i.e. the 'identity transformation'.

a = (1,2,3);
b = identity(a);
// identical(a,b) == true

Sometimes useful where a function is needed as a parameter.

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