function
reversed
reversed[T: ReversibleRange](value: T) -> _StridedRangeIterator
Get a reversed iterator of the input range.
Note: iterators are currently non-raising.
Parameters:
- T (
ReversibleRange
): The type conforming to ReversibleRange.
Args:
- value (
T
): The range to get the reversed iterator of.
Returns:
The reversed iterator of the range.
reversed[mutability: i1, self_life: lifetime<*(0,0)>, T: CollectionElement](value: !lit.ref<_stdlib::_collections::_list::_List<:trait<_stdlib::_builtin::_value::_CollectionElement> T>, mut=mutability, self_life>) -> _ListIter[$2, $0, $1, false]
Get a reversed iterator of the input list.
Note: iterators are currently non-raising.
Parameters:
- mutability (
i1
): Whether the reference to the list is mutable. - self_life (
lifetime<*(0,0)>
): The lifetime of the list. - T (
CollectionElement
): The type of the elements in the list.
Args:
- value (
!lit.ref<_stdlib::_collections::_list::_List<:trait<_stdlib::_builtin::_value::_CollectionElement> T>, mut=mutability, self_life>
): The list to get the reversed iterator of.
Returns:
The reversed iterator of the list.
reversed[mutability: i1, self_life: lifetime<*(0,0)>, K: KeyElement, V: CollectionElement](value: !lit.ref<_stdlib::_collections::_dict::_Dict<:trait<_stdlib::_collections::_dict::_KeyElement> K, :trait<_stdlib::_builtin::_value::_CollectionElement> V>, mut=mutability, self_life>) -> _DictKeyIter[$2, $3, $0, $1, false]
Get a reversed iterator of the input dict.
Note: iterators are currently non-raising.
Parameters:
- mutability (
i1
): Whether the reference to the dict is mutable. - self_life (
lifetime<*(0,0)>
): The lifetime of the dict. - K (
KeyElement
): The type of the keys in the dict. - V (
CollectionElement
): The type of the values in the dict.
Args:
- value (
!lit.ref<_stdlib::_collections::_dict::_Dict<:trait<_stdlib::_collections::_dict::_KeyElement> K, :trait<_stdlib::_builtin::_value::_CollectionElement> V>, mut=mutability, self_life>
): The dict to get the reversed iterator of.
Returns:
The reversed iterator of the dict.