reduce.reduce

  1. auto reduce(S seed, Slices slices)
    template reduce(alias fun)
    @optmath
    static if(__traits(isSame, naryFun!fun, fun) && !Mir_disable_inlining_in_reduce)
    @optmath
    reduce
    (
    S
    Slices...
    )
    (,
    scope Slices slices
    )
    if (
    Slices.length
    )
  2. auto reduce(S seed, Slices slices)
  3. alias reduce = .reduce!(naryFun!fun)

Parameters

seed S

An initial accumulation value.

slices Slices

One or more slices, range, and arrays.

Return Value

Type: auto

the accumulated result

Meta