import { constant } from "https://deno.land/x/fun@v2.0.0/combinable.ts";
Create a combinable that always returns the given value, ignoring anything that it is combineenated with.
Examples
Example 1
Example 1
import * as SG from "./combinable.ts";
import { pipe } from "./fn.ts";
const { combine } = SG.constant("cake");
const whatDoWeWant = pipe(
"apples",
combine("oranges"),
combine("bananas"),
combine("pie"),
combine("money"),
); // whatDoWeWant === "cake"
Parameters
a: A