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

getCombinableThese

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

Create a Combinable instance for These given Combinable instances for the Left and Right types.

@example
import { getCombinableThese, right, both } from "./these.ts";
import * as N from "./number.ts";
import * as S from "./string.ts";

const combinable = getCombinableThese(N.CombinableNumberSum, S.CombinableString);
const th1 = right(2);
const th2 = right(3);
const result = combinable.combine(th2)(th1); // Right(5)
function getCombinableThese<A, B>(SA: Combinable<A>, SB: Combinable<B>): Combinable<These<B, A>>;
§
getCombinableThese<A, B>(SA: Combinable<A>, SB: Combinable<B>): Combinable<These<B, A>>
[src]

§Type Parameters

§Parameters

§Return Type