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

wrap

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

Wrap a value in a Replete Datum.

@example
import { wrap } from "./datum.ts";

const datum = wrap(42);
console.log(datum); // { tag: "Replete", value: 42 }
function wrap<A>(a: A): Datum<A>;
§
wrap<A>(a: A): Datum<A>
[src]

§Type Parameters

§Parameters

§Return Type