# tmuxq.MatchingSeq

- **Module:** tmuxq
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmuxq/filter.go#L32
- **Page:** https://libtmux.org/en/go/latest/reference/tmuxq-matchingseq/

```
tmuxq.MatchingSeq(values: iter.Seq[T], filter: Filter[T]) -> (iter.Seq[T], error)
```

MatchingSeq returns a lazy sequence of shallow copies for values that filter accepts, retaining source order. The filter is compiled before iteration begins, so an invalid filter is an error here rather than a sequence that yields nothing.
