# LibTmux::Selection::iterator

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Perl
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-perl/blob/352715a4fa66a96eed7763b90daaa536aa2f121d/packages/core/lib/LibTmux/Selection.pm#L122
- **Page:** https://libtmux.org/en/perl/latest/reference/libtmux-selection-iterator-2bn1/

```
sub iterator($self)
```

Return a fresh local cursor with a copy of current membership. Its `next` returns an entity or undef only at exhaustion. Later native array edits do not alter this traversal; the selection remains replayable.

## Methods
