1Builtins.identity(3kaya)     Kaya module reference    Builtins.identity(3kaya)
2
3
4

NAME

6       Builtins::identity - Returns a new reference to the original value.
7

SYNOPSIS

9       a identity( a val )
10

DESCRIPTION

12       Returns  a  new  reference  to  the original value - i.e. the 'identity
13       transformation'.
14
15
16    a = (1,2,3);
17    b = identity(a);
18    // identical(a,b) == true
19
20       Sometimes useful where a function is needed as a parameter.
21

AUTHORS

23       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
24       (kaya@kayalang.org). For further information see http://kayalang.org/
25

LICENSE

27       The  Kaya  standard  library  is free software; you can redistribute it
28       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
29       License  (version  2.1  or  any later version) as published by the Free
30       Software Foundation.
31
32
33
34Kaya                             December 2010        Builtins.identity(3kaya)
Impressum