Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

function libtmux-go latest

NewSparseArray

NewSparseArray builds an array from entries, sorting them by index. It returns errors matching ErrInvalidSparseIndex or ErrDuplicateSparseIndex for negative, overflowing, or duplicate indices.

Source and package
Qualified name
tmux.NewSparseArray
Package
tmux
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/sparse_array.go
func NewSparseArray[T any]( entries ...SparseEntry[T], ) (SparseArray[T], error)
Type parameters
Parameters
Esc

Type to search.

Reference previewOpen reference