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.update(with:)

Inserts the given element into the set.

Source and package
Qualified name
RegexPattern.Options.update(with:)
Module
RegexPattern
Declared in
Options
Package
libtmux-swift
update(with: Self.Element) -> Self.Element?

Inherited from OptionSet.update(with:)

Description#

If newMember is not contained in the set but subsumes current members of the set, the subsumed members are returned.

var options: ShippingOptions = [.secondDay, .priority] let replaced = options.update(with: .express) print(replaced == .secondDay) // Prints "true"

  • Returns: The intersection of [newMember] and the set if the intersection was nonempty; otherwise, nil.
Parameters
Esc

Type to search.

Reference previewOpen reference