import { fn } from "https://deno.land/x/fun@v2.0.0-alpha.6/mod.ts";
const { of } = fn;
Create a Fn that always returns a value. This is equivalent to constant.
Examples
Example 1
Example 1
import { of } from "./fn.ts";
const alwaysA = of("A");
const result = alwaysA(null); // "A"
Parameters
a: A