Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

RegexPattern.Options.update(with:)

Swift
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift

View as Markdown

Module
RegexPattern
Declared in
Options
Package
libtmux-swift
update(with:) ( with : Self.Element ) → Self.Element?
method
method
update(with:)

Inherited from OptionSet.update(with:)

Inserts the given element into the set.

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.

0 declared, 0 inherited

Esc

Type to search.