Gets the value of the element at the indexth position in the list.
Gets the value of the element at the indexth position in the list. If the key is a non-list element, an exception will be thrown.
an option of the value of the element at the indexth position in the list. Nothing if the index is out of range.
Inserts a value after another pivot value in the list.
Inserts a value after another pivot value in the list. If the key is a non-list element, an exception will be thrown.
an option of the new length of the list, or nothing if the pivot is not found, or the list is empty.
Inserts a value before another pivot value in the list.
Inserts a value before another pivot value in the list. If the key is a non-list element, an exception will be thrown.
an option of the new length of the list, or nothing if the pivot is not found, or the list is empty.
Gets the length of the list.
Gets the length of the list. If the key is a non-list element, an exception will be thrown.
the length of the list. Unassigned keys are considered empty lists, and return 0.
Pops a value off the front of the list.
Pops a value off the front of the list. If the key is a non-list element, an exception will be thrown.
an option of the value of the popped element, or nothing if the list is empty.
Pushes a value onto the front of the list.
Pushes a value onto the front of the list. If the key is a non-list element, an exception will be thrown.
the length of the list
Gets the values in the range supplied.
Gets the values in the range supplied. If the key is a non-list element, an exception will be thrown.
(inclusive)
(inclusive)
a list of the value
Removes count elements matching value from the list.
Removes count elements matching value from the list. If the key is a non-list element, an exception will be thrown.
the number of removed elements.
The sign of count
describes whether it will remove them from the
back or the front of the list. If count is 0, it will remove all instances, value
Sets the indexth element to be value.
Sets the indexth element to be value. If the key is a non-list element, an exception will be thrown.
Removes all of the elements from the list except for those in the range.
Removes all of the elements from the list except for those in the range.
(inclusive)
(exclusive)
Pops a value off the end of the list.
Pops a value off the end of the list. If the key is a non-list element, an exception will be thrown.
an option of the value of the popped element, or nothing if the list is empty.
Pushes a value onto the end of the list.
Pushes a value onto the end of the list. If the key is a non-list element, an exception will be thrown.
the length of the list