# tmuxq.First

- **Module:** tmuxq
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmuxq/query.go#L37
- **Page:** https://libtmux.org/en/go/latest/reference/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.
