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/free.ts";

Combine two Free structures.

@example
import { combine, node } from "./free.ts";
import { pipe } from "./fn.ts";

const first = node(1);
const second = node(2);
const combined = pipe(first, combine(second));

console.log(combined.tag); // "Link"
function combine<A>(second: Free<A>): (first: Free<A>) => Free<A>;
§
combine<A>(second: Free<A>): (first: Free<A>) => Free<A>
[src]

§Type Parameters

§Parameters

§
second: Free<A>
[src]

§Return Type

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