listLength (Function)
Signature: listLength(list: List<t0>) -> int
Description: Returns the number of elements in a list. O(1).
Parameters
- list (
List<t0>): The list
Returns: int
Example
print(listLength([1, 2, 3])) // 3
print (listLength [1, 2, 3]) // 3