Function adjacentCombine

  • Combine adjacent values of an array.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • fc: CombineFunction<T>

      combine function (u, v)

    • acc: T

      initial value

    Returns T[]

    [fc(acc, v₀), fc(v₀, v₁)...] | vᵢ ∈ x

Generated using TypeDoc