# tmuxq.FirstSeq

- **Module:** tmuxq
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmuxq/query.go#L94
- **Page:** https://libtmux.org/reference/go/tmuxq-firstseq/

```
tmuxq.FirstSeq(values: iter.Seq[T], predicate: func(*T) bool) -> (T, bool)
```

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.
