size
number of elements in a list or dict
(any subject) -> long
If subject
is a list, returns the size of the list.
If subject
is a dict, returns the number of entries.
Returns nil
if subject
is nil
Throws an error if subject
is of any other type.
Parameters
Name | Type | Description |
---|---|---|
subject |
dict or list | The dict or list to inspect |