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

getApplicableCombinable

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

Create a Combinable instance for an Applicable structure given a Combinable for the inner type.

@example
import * as A from "./applicable.ts";
import * as O from "./option.ts";
import * as N from "./number.ts";

const combinableOption = A.getApplicableCombinable(O.ApplicableOption)(N.CombinableNumberSum);

const result = combinableOption.combine(O.some(2))(O.some(3)); // Some(5)
function getApplicableCombinable<U extends Kind>({ apply, map }: Applicable<U>): <A, B = never, C = never, D = unknown, E = unknown>(combinable: Combinable<A>) => Combinable<$<U, [A, B, C], [D], [E]>>;
§
getApplicableCombinable<U extends Kind>({ apply, map }: Applicable<U>): <A, B = never, C = never, D = unknown, E = unknown>(combinable: Combinable<A>) => Combinable<$<U, [A, B, C], [D], [E]>>
[src]

§Type Parameters

§
U extends Kind
[src]

§Parameters

§
{ apply, map }: Applicable<U>
[src]

§Return Type

§
<A, B = never, C = never, D = unknown, E = unknown>(combinable: Combinable<A>) => Combinable<$<U, [A, B, C], [D], [E]>>
[src]