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

    Function scan

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

      Type Parameters

      • A
      • V
      • R

      Parameters

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

        Function to process output R from value with accumulating state A.

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

      The last accumulating state and new scanned Map.