Function wrapPred

  • Adapt a predicate into a function that returns Maybe.

    Type Parameters

    • T

    • T1

    Parameters

    • f: ((val) => val is T1)
        • (val): val is T1
        • Parameters

          • val: T

          Returns val is T1

    Returns ((val) => Maybe<T1>)

      • (val): Maybe<T1>
      • Parameters

        • val: T

        Returns Maybe<T1>

  • Type Parameters

    • T

    Parameters

    • f: ((val) => boolean)
        • (val): boolean
        • Parameters

          • val: T

          Returns boolean

    Returns ((val) => Maybe<T>)

      • (val): Maybe<T>
      • Parameters

        • val: T

        Returns Maybe<T>

Generated using TypeDoc