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

    Function scanWithKey

    • Scans over the Map with scanner function, a stateful computation.

      Type Parameters

      • A
      • K
      • V
      • R

      Parameters

      • scanner: (acc: A) => (key: K) => (value: V) => Tuple.Tuple<A, R>

        Function to process output R from value with accumulating state A. Also the key will be passed to.

      Returns (init: A) => (m: Map<K, V>) => Tuple.Tuple<A, Map<K, R>>

      The last accumulating state and new scanned Map.