# tmuxq.First

- **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#L37
- **Page:** https://libtmux.org/reference/go/tmuxq-first/

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

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.
