Int size(var [a] xs)
Arguments
xs: An array
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
xs: An arrayReturn 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