• Concurrently evaluate the Maybe or AsyncMaybeLike in an array or a tuple literal and collect the Just values in an equivalent structure.

    Type Parameters

    Parameters

    • elems: TElems

    Returns AsyncMaybe<{
        [K in keyof TElems]: JustT<Awaited<TElems[K]>>
    }>

    Remarks

    This function turns an array or a tuple literal of Maybe or AsyncMaybeLike "inside out". For example:

    • AsyncMaybe<T>[] becomes AsyncMaybe<T[]>
    • [AsyncMaybe<T1>, AsyncMaybe<T2>] becomes AsyncMaybe<[T1, T2]>
  • Concurrently evaluate the Maybe or AsyncMaybeLike in an iterable and collect the Just values in an array.

    Type Parameters

    • T

    Parameters

    Returns AsyncMaybe<T[]>

    Remarks

    This function turns an iterable of Maybe or AsyncMaybeLike "inside out" For example, Iterable<AsyncMaybe<T>> becomes AsyncMaybe<T[]>.

Generated using TypeDoc