interface Functor<T> {
    fantasy-land/map?<V>(fn: ((val: T) => V)): Functor<V>;
    map<V>(fn: ((val: T) => V)): Functor<V>;
}

Type Parameters

  • T

Hierarchy-Diagram

UML class diagram of Functor
Legend
icon for an interface in the UML class diagram interface
icon for a public method in the UML class diagram public method

Hierarchy (view full)

Methods

  • Type Parameters

    • V

    Parameters

    • fn: ((val: T) => V)
        • (val: T): V
        • Parameters

          • val: T

          Returns V

    Returns Functor<V>

  • Type Parameters

    • V

    Parameters

    • fn: ((val: T) => V)
        • (val: T): V
        • Parameters

          • val: T

          Returns V

    Returns Functor<V>