# tmuxq.Where

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