ts-iterable-functions
    Preparing search index...

    Function _concat

    • Concatenates the source iterable with any number of additional iterables in the order provided.

      Type Parameters

      • T

        Element type yielded by each iterable.

      Parameters

      • src: Iterable<T>

        Source iterable to enumerate first.

      • ...sequences: Iterable<T, any, any>[]

        Additional iterables appended sequentially after the source.

      Returns Iterable<T>

      A deferred iterable that yields all items from src followed by each iterable in sequences.

      const combined = _concat([1, 2], [3], [4, 5]);
      console.log([...combined]); // [1, 2, 3, 4, 5]

      or using the curried version:

      const combined = pipeInto([1, 2], concat([3], [4, 5]));
      console.log([...combined]); // [1, 2, 3, 4, 5]