Kaya 0.4.4 reference for Builtins::size

List of functions and data types in Builtins

Int size(var [a] xs)

Arguments

Usage

Return the length of an array. The empty array has length 0, and uninitialised elements are considered to exist for the purposes of determining length.

arr = [];
arr[5] = 26;
l = length(arr); // 6
kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya