RegexPattern.Options.union(_:)
Swift
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift
- Module
- RegexPattern
- Declared in
- Options
- Package
- libtmux-swift
- union(_:) ( other : Self ) Selfmethod ¶method ¶union(_:)
-
Inherited from
OptionSet.union(_:)Returns a new option set of the elements contained in this set, in the given set, or in both.
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.
0 declared, 0 inherited