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

    Function mapResultWithKey

    • Transforms the Map with fail-able conversion mapper.

      Type Parameters

      • K
      • V
      • E
      • W

      Parameters

      • mapper: (key: K) => (value: V) => Result.Result<E, W>

        Function to transform into W, but fail-able. If it returned Err, the value will be collected to errors. Also the key will be passed to.

      Returns (m: Map<K, V>) => [errors: Map<K, E>, oks: Map<K, W>]

      Two Maps, error values and ok values.