method Enumerable.prototype.concat
Enumerable.prototype.concat(other: AsyncIterable<T>): Enumerable<T>

Concatenate this sequence with another.

Examples

Join two sequences

import { enumerate } from "jsr:@j50n/proc";

const result = await enumerate([1, 2])
  .concat(enumerate([3, 4]))
  .collect();
// [1, 2, 3, 4]

Parameters

other: AsyncIterable<T>

The sequence to append.

Return Type

An Enumerable of concatenated items.

Usage

import { Enumerable } from ".";