Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

method libtmux stable

SparseArray.iter_values

Iterate over values in sorted index order.

Source and package
Qualified name
libtmux._internal.sparse_array.SparseArray.iter_values
Module
libtmux._internal.sparse_array
Declared in
SparseArray
Package
libtmux
Source
src/libtmux/_internal/sparse_array.py
iter_values (self) → t.Iterator[T]

Examples#

>>> from libtmux._internal.sparse_array import SparseArray
>>> arr: SparseArray[str] = SparseArray()
>>> arr.add(5, "fifth")
>>> arr.add(0, "first")
>>> arr.add(2, "second")
>>> for val in arr.iter_values():
... print(val)
first
second
fifth
Type parameters
Returns

T Values in ascending index order.

Esc

Type to search.

Reference preview Open reference