Function generate

  • Create compound Either from generator function

    Applying yield to a Maybe within the generator function unwraps the Maybe and returns underlying value in case of success However the convinient option for typescript is to use yield* maybe.generator() as othervise one may have to deal with union types

    Type Parameters

    • T

    • TT extends Either<T, any>

      yielded Maybe type

    • R

      returned underlying type

    Parameters

    Returns Either<R, any>

    Just wrapping the result of generator function or Nothing ```

Generated using TypeDoc