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.

method libtmux-go latest

SparseArray.With

With returns a copy with value inserted or replaced at index. It leaves the receiver unchanged and returns an error matching ErrInvalidSparseIndex for a negative index.

Source and package
Qualified name
tmux.SparseArray.With
Package
tmux
Declared in
SparseArray
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/sparse_array.go
func (a SparseArray[T]) With( index int, value T, ) (SparseArray[T], error)
Type parameters
Parameters
Esc

Type to search.

Reference previewOpen reference