Core LibraryunreleasedAPI Reference

Choose documentation 2

latest

Current version

latest
English

Unreleased libtmux has not been released. Its API may change during development. This site's structure and URLs may change too.

module libtmux-ocaml latest

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
module Query

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 expression compiles 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, with Ok None for an empty sequence. Order and duplicate entries count toward cardinality; values are not deduplicated.
Esc

Type to search.

Reference previewOpen reference