Function inclusiveScan$

  • Perform inclusive prefix scan from left to right!

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array (updated!)

    • fr: ReduceFunction<T, T>

      reduce function (acc, v, i, x)

    • acc: T

      initial value

    Returns T[]

    x = [fr(acc, v₀), fr(fr(acc, v₀), v₁)...]

Generated using TypeDoc