1Builtins.isInitialised(3kaya)Kaya module referenceBuiltins.isInitialised(3kaya)
2
3
4

NAME

6       Builtins::isInitialised - Checks if a value is initialised
7

SYNOPSIS

9       Bool isInitialised( var a x )
10

ARGUMENTS

12       x A possibly initialised variable
13

DESCRIPTION

15       Returns true if the value is initialised, or false if not
16            (for example, an uninitialised array element)
17
18
19    arr = [];
20    arr[2] = 55;
21    b = isInitialised(arr); // true
22    b = isInitialised(arr[2]); // true
23    b = isInitialised(arr[1]); // false
24

AUTHORS

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

LICENSE

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