• Makes tuples from two Cats.

    Type Parameters

    • A

    Parameters

    • a: Cat<A>

      A Cat to be placed at left.

    Returns (<B>(b) => Cat<[A, B]>)

    A composed Cat.

    Examples

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

    const actual = product(cat(5))(cat("foo")).value;
    assertEquals(actual, [5, "foo"]);
      • <B>(b): Cat<[A, B]>
      • Type Parameters

        • B

        Parameters

        Returns Cat<[A, B]>

Generated using TypeDoc