exactlyOne(_:)
The one element the filter matches.
Source and package
- Qualified name
-
Sequence.exactly One(_:) - Module
- Sequence
- Package
- libtmux-swift
- Source
- Sources/LibTmux/FilterExpr.swift
- exactlyOne(expression: Filter
Expr <Element>) -> Self.Element -
Description#
Distinguishes "nothing matched" from "several matched", because a caller that meant to address one object needs to know which mistake it made.
- Parameters
-
-
expression(FilterExpr <Element>) #
-
- Raises