List.get
getindexif_missing
Documentation
Gets an element from the list at a specified index (0-based).
If the index is invalid then if_missing is returned.
Arguments
index: The location in the List to get the element from. The index is also allowed be negative, then the elements are indexed from the back of the final item, i.e. -1 will correspond to the last element.if_missing: The value to return if the index is out of bounds.
Remarks
Computational Complexity
Note that this is a linear operation requiring O(n) time.