libtmux Reference MCP Search
On this page

TmuxVersion...<(_:_:)

View as Markdown

Declared in
TmuxVersion
Package
libtmux-swift
..<(_:_:) ( minimum : Self , maximum : Self ) Range<Self>
functionstatic [source]
functionstatic [source]
..<(_:_:)

Returns a half-open range that contains its lower bound but not its upper bound.

Use the half-open range operator (`..<) to create a range of any type that conforms to theComparableprotocol. This example creates aRange<Double>` from zero up to, but not including, 5.0.

let lessThanFive = 0.0..<5.0 print(lessThanFive.contains(3.14)) // Prints "true" print(lessThanFive.contains(5.0)) // Prints "false"

  • Parameters:
    • minimum: The lower bound for the range.
    • maximum: The upper bound for the range.
  • Precondition: `minimum <= maximum`.

0 declared, 0 inherited

Esc

Type to search.