Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-swift latest

exactlyOne(_:)

The one element the filter matches.

Source and package
Qualified name
Sequence.exactlyOne(_:)
Module
Sequence
Package
libtmux-swift
Source
Sources/LibTmux/FilterExpr.swift
exactlyOne(expression: FilterExpr<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
Raises
Esc

Type to search.

Reference previewOpen reference