Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "union"

Index

Functions

Functions

Const union

  • Computes union of sets a and b and writes results to new set or optionally given set out (assumed to be empty for correct results).

    Type parameters

    • T

    Parameters

    • a: Set<T>

      first set

    • b: Set<T>

      other set

    • Optional out: Set<T>

      result set

    Returns Set<T>

unionR

  • unionR<T>(): Reducer<Set<T>, Iterable<T>>
  • unionR<T>(src: Iterable<Iterable<T>>): Set<T>
  • Reducer version of union. If src is given returns the reduced union of given inputs, else merely returns a reducer to be used with {@link @thi.ng/transducers#(reduce:1)} / {@link @thi.ng/transducers#(transduce:1)} functions.

    Type parameters

    • T

    Returns Reducer<Set<T>, Iterable<T>>

  • Type parameters

    • T

    Parameters

    • src: Iterable<Iterable<T>>

    Returns Set<T>

Generated using TypeDoc