Contains a value and can be transformed into another one by feed.

Type Parameters

  • T

    Type of value, contained by Cat.

Hierarchy

  • Cat

Properties

Properties

feed: (<U>(fn) => Cat<U>)

Type declaration

    • <U>(fn): Cat<U>
    • Feeds a function to the Cat, then Cat creates a new Cat by calling it.

      Type Parameters

      • U

      Parameters

      • fn: ((t) => U)

        A map function for value, having referential-transparency is expected.

          • (t): U
          • Parameters

            • t: T

            Returns U

      Returns Cat<U>

      A new Cat transformed from value by fn.

value: T

Contained value. Altering an interior value must be abstained, or may occurs unsound behaviors.

Generated using TypeDoc