len
Returns the length of a list or tuple.
This function does not generate a change.
Function
array.len()
Arguments
None
Return value
Returns length of the array.
Example
This code uses len()
to return the number of items in a collection:
[1, 2, 3, 4].len();
Return value in JSON format