# tmuxq.Where

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

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

Where returns a fresh slice of shallow copies for values accepted by predicate, retaining their source order. It evaluates every input value, so a no-match result is an empty slice.
