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

getCombinableSyncEither

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

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

@example
import { getCombinableSyncEither, right } from "./sync_either.ts";
import * as N from "./number.ts";
import * as S from "./string.ts";

const combinable = getCombinableSyncEither(N.CombinableNumberSum, S.CombinableString);
const se1 = right(2);
const se2 = right(3);
const result = combinable.combine(se2)(se1)(); // Right(5)
function getCombinableSyncEither<A, B>(CA: Combinable<A>, CB: Combinable<B>): Combinable<SyncEither<B, A>>;
§
getCombinableSyncEither<A, B>(CA: Combinable<A>, CB: Combinable<B>): Combinable<SyncEither<B, A>>
[src]

§Type Parameters

§Parameters