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

getInitializableThese

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

Create an Initializable instance for These given Initializable instances for the Left and Right types.

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

const initializable = getInitializableThese(N.InitializableNumberSum, S.InitializableString);
const th1 = right(2);
const th2 = right(3);
const result = initializable.combine(th2)(th1); // Right(5)
const init = initializable.init(); // Right(0)
function getInitializableThese<A, B>(IA: Initializable<A>, IB: Initializable<B>): Initializable<These<B, A>>;
§
getInitializableThese<A, B>(IA: Initializable<A>, IB: Initializable<B>): Initializable<These<B, A>>
[src]

§Type Parameters

§Return Type