Function fullJoinHomogeneous

  • Performs a full outer join on two homogeneous sequences. Additional arguments specify key selection functions and result projection functions.

    Typeparam

    TFirst The type of elements in the first sequence.

    Typeparam

    TKey The type of the key returned by the key selector functions.

    Typeparam

    TResult The type of the result elements.

    Returns

    A sequence containing results projected from a full outer join of the two input sequences.

    Type Parameters

    • TFirst

    • TKey

    • TResult

    Parameters

    • first: Iterable<TFirst>

      The first sequence of the join operation.

    • second: Iterable<TFirst>

      The second sequence of the join operation.

    • keySelector: ((item: TFirst) => TKey)

      Function that projects the key given an element of one of the sequences to join.

        • (item: TFirst): TKey
        • Parameters

          • item: TFirst

          Returns TKey

    • firstSelector: ((item: TFirst) => TResult)

      Function that projects the result given just an element from first where there is no corresponding element in second.

        • (item: TFirst): TResult
        • Parameters

          • item: TFirst

          Returns TResult

    • secondSelector: ((item: TFirst) => TResult)

      Function that projects the result given just an element from second where there is no corresponding element in first.

        • (item: TFirst): TResult
        • Parameters

          • item: TFirst

          Returns TResult

    • bothSelector: ((a: TFirst, b: TFirst) => TResult)

      Function that projects the result given an element from first and an element from second that match on a common key.

        • (a: TFirst, b: TFirst): TResult
        • Parameters

          • a: TFirst
          • b: TFirst

          Returns TResult

    • Optional equalityComparer: EqualityComparer<TKey>

      A function to compare keys.

    Returns IEnumerable<TResult>

Generated using TypeDoc