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

getRightFlatmappable

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

Create a Flatmappable for FnEither where left values are combined using the supplied Combinable.

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

const { apply } = FE.getRightFlatmappable(InitializableNumberSum);

const result1 = pipe(
  FE.left(1),
  apply(FE.left(1)),
); // Left(2)
function getRightFlatmappable<B>({ combine }: Combinable<B>): Flatmappable<KindRightFnEither<B>>;
§
getRightFlatmappable<B>({ combine }: Combinable<B>): Flatmappable<KindRightFnEither<B>>
[src]

§Type Parameters

§Parameters

§
{ combine }: Combinable<B>
[src]