Pacote
    Preparing search index...

    Function flatMap

    • Calls fn if the result is Ok, otherwise returns the Err value.

      Type Parameters

      • T
      • E
      • U

      Parameters

      • fn: (value: T) => Result<U, E>

        Flat map function.

      • result: Result<T, E>

        Result to flat map.

      Returns Result<U, E>

      Flat mapped result.