Accessors

This page contains information about the methods of the FroidurePin class related to accessing elements.

FroidurePin.__iter__(self: FroidurePin) Iterator

Returns an iterator pointing to the first element.

The order of iteration is the same as the order that elements were enumerated.

Parameters

None

Returns

Iterator

FroidurePin.at(self: FroidurePin, i: int) Element

Access element specified by index with bound checks.

Parameters

i (int) -- the index of the element to access.

Returns

The element with index i (if any).

FroidurePin.current_size(self: FroidurePin) int

Returns the number of elements so far enumerated.

Parameters

None

Returns

An int.

FroidurePin.size(self: FroidurePin) int

Returns the size.

Parameters

None

Returns

An int.

FroidurePin.sorted_at(self: FroidurePin, i: int) Element

Access element specified by sorted index with bound checks.

Parameters

i (int) -- the sorted index of the element to access.

Returns

The element with index i (if any).

FroidurePin.sorted(self: FroidurePin) Iterator

Returns an iterator pointing to the first element (sorted).

Parameters

None

Returns

An iterator..