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.

MoreLess about this notice

method libtmux-swift

Options.subtracting(_:)

Returns a new set containing the elements of this set that do not occur in the given set.

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

Inherited from SetAlgebra.subtracting(_:)

Description

In the following example, the nonNeighbors set is made up of the elements of the employees set that are not elements of neighbors:

let employees: Set = ["Alicia", "Bethany", "Chris", "Diana", "Eric"] let neighbors: Set = ["Bethany", "Eric", "Forlani", "Greta"] let nonNeighbors = employees.subtracting(neighbors) print(nonNeighbors) // Prints "["Diana", "Chris", "Alicia"]"

  • Parameter other: A set of the same type as the current set.
  • Returns: A new set.
Parameters

Recorded calls

source calls
No call edges in the Swift model.

The Swift reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls RegexPattern.Options.subtracting(_:).

Esc
Search in

Type to search.

Reference previewOpen reference