• Creates a new Cat contained value.

    Type Parameters

    • T

    Parameters

    • value: T

      A value will be contained.

    Returns Cat<T>

    A new created Cat.

    Examples

    import { cat } from "./cat.ts";
    import { assertEquals } from "../deps.ts";

    const result = cat(-3)
    .feed((x) => x ** 2)
    .feed((x) => x.toString());
    assertEquals(result.value, "9");

Generated using TypeDoc