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

Options.init(_:)

Creates a new set from a finite sequence of items.

Source and package
Qualified name
RegexPattern.Options.init(_:)
Module
RegexPattern
Declared in
Options
Package
libtmux-swift
init(sequence: S)

Inherited from SetAlgebra.init(_:)

Description#

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.
Type parameters
  • S #

    Constraint Sequence

Parameters
Esc

Type to search.

Reference previewOpen reference