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

First

First returns a shallow copy of the first source-ordered value accepted by predicate and stops evaluating later values. If no value matches, it returns the zero value of T and false.

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

Guides#

Pages that discuss First.

Esc

Type to search.

Reference previewOpen reference