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.union(_:)

Returns a new option set of the elements contained in this set, in the given set, or in both.

Source and package
Qualified name
RegexPattern.Options.union(_:)
Module
RegexPattern
Declared in
Options
Package
libtmux-swift
union(other: Self) -> Self

Inherited from OptionSet.union(_:)

Description#

This example uses the union(_:) method to add two more shipping options to the default set.

let defaultShipping = ShippingOptions.standard let memberShipping = defaultShipping.union([.secondDay, .priority]) print(memberShipping.contains(.priority)) // Prints "true"

  • Parameter other: An option set.
  • Returns: A new option set made up of the elements contained in this set, in other, or in both.
Parameters
Esc

Type to search.

Reference previewOpen reference