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

join

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

Flatten nested FnEithers with the same input and left types.

@example
import * as FE from "./fn_either.ts";
import { pipe } from "./fn.ts";

const result = pipe(
  FE.right(FE.right(1)),
  FE.join,
)(null); // Right(1)
function join<D, A, B, L, J>(tua: FnEither<L, J, FnEither<D, B, A>>): FnEither<D & L, B | J, A>;
§
join<D, A, B, L, J>(tua: FnEither<L, J, FnEither<D, B, A>>): FnEither<D & L, B | J, A>
[src]

§Parameters

§
tua: FnEither<L, J, FnEither<D, B, A>>
[src]

§Return Type

§
FnEither<D & L, B | J, A>
[src]