libtmux Reference MCP Search
On this page

RegexPattern.Options.init(_:)

View as Markdown

Module
RegexPattern
Declared in
Options
Package
libtmux-swift
init(_:) ( sequence : S )
method [source]
method [source]
init(_:)

Creates a new set from a finite sequence of items.

Use this initializer to create a new set from an existing sequence, like an array or a range:

let validIndices = Set(0..<7).subtracting([2, 4, 5]) print(validIndices) // Prints "[6, 0, 1, 3]"

  • Parameter sequence: The elements to use as members of the new set.

0 declared, 0 inherited

Esc

Type to search.