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

fromEither

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

Convert an Either to a SyncEither.

@example
import { fromEither } from "./sync_either.ts";
import * as E from "./either.ts";

const either = E.right("Success");
const syncEither = fromEither(either);
const result = syncEither(); // Right("Success")
function fromEither<A = never, B = never>(ta: E.Either<B, A>): SyncEither<B, A>;
§
fromEither<A = never, B = never>(ta: E.Either<B, A>): SyncEither<B, A>
[src]

§Type Parameters

§
A = never
[src]
§
B = never
[src]

§Parameters

§
ta: E.Either<B, A>
[src]

§Return Type