@mikuroxina/mini-fn
    Preparing search index...

    Type Alias CatPlusAltT<M, CTX, K, T>

    A CatPlusT's sub-combinator which chains alternate branches with its method or.

    type CatPlusAltT<M, CTX, K extends PropertyKey, T> = {
        end: () => CatPlusT<M, Record<K, T> & CTX>;
        or: (
            action: (cat: CatPlusT<M, CTX>) => Get1<M, T>,
        ) => CatPlusAltT<M, CTX, K, T>;
    }

    Type Parameters

    • M

      HKT key applied to MonadPlus.

    • CTX

      Passing context type.

    • K extends PropertyKey

      Key literal type to store the result of branches.

    • T

      Returning type of branches.

    Index

    Properties

    Properties

    end: () => CatPlusT<M, Record<K, T> & CTX>

    Finishes branches chain and go back to the CatPlusT.

    Type Declaration

    or: (action: (cat: CatPlusT<M, CTX>) => Get1<M, T>) => CatPlusAltT<M, CTX, K, T>

    Connects the computation in parallel.

    Type Declaration