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/free.ts";

Wrap a value in a Free structure.

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

const wrapped = wrap("Hello");
console.log(wrapped); // { tag: "Node", value: "Hello" }
function wrap<A>(a: A): Free<A>;
§
wrap<A>(a: A): Free<A>
[src]

§Type Parameters

§Parameters

§Return Type