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

getCombinableSync

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

Create a Combinable instance for Sync given a Combinable for the inner type.

@example
import { getCombinableSync, wrap } from "./sync.ts";
import * as N from "./number.ts";

const combinableSync = getCombinableSync(N.CombinableNumberSum);
const sync1 = wrap(2);
const sync2 = wrap(3);
const result = combinableSync.combine(sync2)(sync1)(); // 5
function getCombinableSync<A>({ combine }: Combinable<A>): Combinable<Sync<A>>;
§
getCombinableSync<A>({ combine }: Combinable<A>): Combinable<Sync<A>>
[src]

§Type Parameters

§Parameters

§
{ combine }: Combinable<A>
[src]

§Return Type