Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T = any

Hierarchy

  • IBaseSetCombination<T>
    • ISetUnion

Index

Properties

Readonly cardinality

cardinality: number

number of elements in the set

Optional Readonly color

color?: string

optional set color

Readonly degree

degree: number

number of set in this set intersection

Readonly elems

elems: readonly T[]

elements in this set

Readonly name

name: string

name of the set

Readonly sets

sets: ReadonlySet<ISet<T>>

sets this set intersection is composed of

Readonly type

type: "union"

whether it is a set or an intersection

Methods

Optional overlap

  • overlap(o: readonly T[] | ISetLike<T>): number
  • custom overlap computation function

    Parameters

    • o: readonly T[] | ISetLike<T>

      to compare with

    Returns number