# LibTmux::Selection::Selection.single-or-nil

- **Module:** LibTmux::Selection
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Selection.rakumod#L94
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-selection-selection-single-or-nil/

```
method single-or-nil()
```

Return Nil for zero members, the sole member for one, otherwise throw.

Return Nil for zero members, the sole member for one, otherwise throw.
