Function: length

Function: length



Returns the number of items in a list or the number of characters in a string.

Note: This function is exactly the same as number_of_items.


Parameter Type Description
input list or map or set or string Object to determine the number of items of. When it is a set, returns the number of cards. When it is a string, returns the number of characters.


 length(["x", "y", "z"]) == 3
 length("pink") == 4

See also

number_of_items Return the number of items in a list.