The OpenD Programming Language

orthogonalReduceField.orthogonalReduceField

  1. OrthogonalReduceField!(Iterator, fun, I) orthogonalReduceField(I initialValue, Slice!Iterator slice)
    template orthogonalReduceField(alias fun)
    static if(__traits(isSame, naryFun!fun, fun))
    OrthogonalReduceField!(Iterator, fun, I)
    orthogonalReduceField
    (
    I
    Iterator
    )
    (,
    Slice!Iterator slice
    )
  2. OrthogonalReduceField!(T*, fun, I) orthogonalReduceField(I initialValue, T[] array)
  3. auto orthogonalReduceField(I initialValue, T withAsSlice)

Parameters

slice Slice!Iterator

Non empty input slice composed of fields or iterators.

Return Value

Type: OrthogonalReduceField!(Iterator, fun, I)

a lazy field with each element of which is reduced value of element of the same index of all iterators.

Meta