List functions
enumerate
Converts the list to a new list of tuples. Each tuple contains the element's position in the original list and its value.
reverse
Reverses the order of elements in the list. rev
is an alias for reverse
.
len
Returns the length of the list.
empty
Returns true if the list is empty (length 0).