Function traverse

  • Map the elements in an iterable to Maybe and collect the Just values in an array.

    Type Parameters

    • T

    • T1

    Parameters

    • elems: Iterable<T>
    • f: ((elem, idx) => Maybe<T1>)
        • (elem, idx): Maybe<T1>
        • Parameters

          • elem: T
          • idx: number

          Returns Maybe<T1>

    Returns Maybe<T1[]>

Generated using TypeDoc