dual
import { dual } from "https://raw.githubusercontent.com/baetheus/fun/main/initializable.ts";
Create a dual Initializable from an existing initializable. This effectively switches the order of application of the original Initializable.
@example
import { dual, getCombineAll, intercalcate } from "./initializable.ts";
import { InitializableString } from "./string.ts";
import { pipe } from "./fn.ts";
const reverse = dual(InitializableString);
const reverseAll = pipe(
reverse,
intercalcate(" "),
getCombineAll,
);
const result = reverseAll("Hello", "World"); // "World Hello"