1Builtins.size(3kaya) Kaya module reference Builtins.size(3kaya)
2
3
4
6 Builtins::size - Length of an array
7
9 Int size( var [a] xs )
10
12 xs An array
13
15 Return the length of an array.
16 The empty array has length 0, and uninitialised elements are con‐
17 sidered
18 to exist for the purposes of determining length.
19
20
21 arr = [];
22 arr[5] = 26;
23 l = length(arr); // 6
24
26 Kaya standard library by Edwin Brady, Chris Morris and others
27 (kaya@kayalang.org). For further information see http://kayalang.org/
28
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.size(3kaya)