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

Where

Where returns a fresh slice of shallow copies for values accepted by predicate, retaining their source order. It evaluates every input value, so a no-match result is an empty slice.

Source and package
Qualified name
tmuxq.Where
Package
tmuxq
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmuxq/query.go
func Where[T any](values []T, predicate func(*T) bool) []T
Type parameters
Parameters
Esc

Type to search.

Reference previewOpen reference