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

getShowableThese

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

Create a Showable instance for These given Showable instances for the Left and Right types.

@example
import { getShowableThese, right, both } from "./these.ts";

const showable = getShowableThese(
  { show: (s: string) => s },
  { show: (n: number) => n.toString() }
);

console.log(showable.show(right(42))); // "Right(42)"
console.log(showable.show(both("Warning", 42))); // "Both(Warning, 42)"
function getShowableThese<A, B>(SB: Showable<B>, SA: Showable<A>): Showable<These<B, A>>;
§
getShowableThese<A, B>(SB: Showable<B>, SA: Showable<A>): Showable<These<B, A>>
[src]

§Type Parameters

§Parameters

§Return Type