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

Returns a Boolean value that indicates whether the set has no members in common with the given set.

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

Inherited from SetAlgebra.isDisjoint(with:)

Description#

In the following example, the employees set is disjoint with the visitors set because no name appears in both sets.

let employees: Set = ["Alicia", "Bethany", "Chris", "Diana", "Eric"] let visitors: Set = ["Marcia", "Nathaniel", "Olivia"] print(employees.isDisjoint(with: visitors)) // Prints "true"

  • Parameter other: A set of the same type as the current set.
  • Returns: true if the set has no elements in common with other; otherwise, false.
Parameters
Esc

Type to search.

Reference previewOpen reference