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

getFlatmappableSyncRight

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

Create a Flatmappable instance for SyncEither with a fixed left type.

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

const flatmappable = getFlatmappableSyncRight(S.CombinableString);
const se = right(5);
const result = flatmappable.flatmap((n: number) => right(n * 2))(se)(); // Right(10)
function getFlatmappableSyncRight<B>(C: Combinable<B>): Flatmappable<KindSyncRight<B>>;
§
getFlatmappableSyncRight<B>(C: Combinable<B>): Flatmappable<KindSyncRight<B>>
[src]

§Type Parameters

§Parameters