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

FirstSeq

FirstSeq returns a shallow copy of the first source-ordered sequence value accepted by predicate and stops pulling later values. If no value matches, it returns the zero value of T and false. With an infinite input that never matches, FirstSeq does not return.

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

Type to search.

Reference previewOpen reference