IndexedCollection¶
No import is needed.
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
IndexedCollection¶
Ordered, indexable sequences (List). Extends Collection so implementers are usable wherever a Collection is expected without re-listing size / iterator.
this¶
Accesses the element at index; an out-of-range index panics.
first¶
Element at index 0, or None when empty.
last¶
Last element, or None when empty.
find_index¶
Index of the first element matching pred, or None.