exactlyOne
Require exactly one value. Uniqueness can require traversing the entire input; ambiguity is established at the second match without forcing its tail. This neither acquires data nor reserves a live command target.
Source and package
- Qualified name
-
LibTmux .Query. exactly One - Declared in
LibTmux.Query- Package
- libtmux-haskell
- Source
- internal/LibTmux/Internal/Query.hs
- exactlyOne :: [row] -> Either Cardinality
Error row
Referenced declarations#
- LibTmux.Query.CardinalityError data type
Guides#
Pages that discuss exactlyOne.