import { concat } from "https://deno.land/x/iter@v3.2.3/mod.ts";
Combines two or more iterables.
Examples
Example 1
Example 1
import * as iter from "https://deno.land/x/iter/mod.ts";
const concatenated = iter.concat([1, 2, 3], [4, 5, 6]);
for (num of concatenated) {
console.log(num);
}
// -> 1
// -> 2
// -> 3
// -> 4
// -> 5
// -> 6
Type Parameters
optional
U = TReturns
IterableCircular<T | U>
An iterable which yields items from the head followed by items from the tail(s) in order.