Libtmux.Query
Sequence adapters and bounded cardinality checks over captured values. Matching preserves order and duplicates. Expected absence and ambiguity remain ordinary result values.
Source and package
- Qualified name
-
Libtmux.Query - Declared in
Libtmux- Package
- libtmux
- Source
- lib/libtmux.mli
-
Public owner:
Libtmux
Members3#
- exactly_one function Return the unique value. Stop when a second value is found; proving uniqueness requires exhausting the remaining sequence. The input's effects and exceptions propagate. This does not execute a mutation.
- matching function
matching expressioncompiles once when the adapter is constructed. Filtering preserves order and duplicates. Snapshot-derived sequences replay captured values; arbitrary input sequences retain their effects, exceptions and replay semantics. No tmux acquisition occurs. - one_or_none function As
exactly_one, withOk Nonefor an empty sequence. Order and duplicate entries count toward cardinality; values are not deduplicated.