Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

combine

import { combine } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/iterable.ts";

Combine two Iterables by concatenating their elements.

@example
import * as I from "./iterable.ts";

const first = I.wrap(1, 2, 3);
const second = I.wrap(4, 5, 6);
const combined = I.combine(second)(first);

const result = Array.from(combined); // [1, 2, 3, 4, 5, 6]
function combine<A>(second: Iterable<A>): (first: Iterable<A>) => Iterable<A>;
§
combine<A>(second: Iterable<A>): (first: Iterable<A>) => Iterable<A>
[src]

§Type Parameters

§Parameters

§
second: Iterable<A>
[src]

§Return Type

§
(first: Iterable<A>) => Iterable<A>
[src]