@ryandur/sand
    Preparing search index...

    Type Alias Functor<VALUE, OUT>

    The endomorphic fragment of a Functor: the structural shape cannot speak the family's own re-instantiation at a new value type, so it captures map at one value type — enough to state the functor laws (identity and composition), proven per family in laws.spec.

    type Functor<VALUE, OUT> = {
        map(f: (value: VALUE) => VALUE): OUT;
    }

    Type Parameters

    • VALUE
    • OUT
    Index