reduce

function reduce(x:Real!, init:Real, op:@(Real, Real) -> Real) -> Real

Iterator reduction.

  • x: Iterator.
  • init: Initial value.
  • op: Operator.

function reduce(x:Integer!, init:Integer, op:@(Integer, Integer) -> Integer) -> Integer

Iterator reduction.

  • x: Iterator.
  • init: Initial value.
  • op: Operator.

function reduce(x:Boolean!, init:Boolean, op:@(Boolean, Boolean) -> Boolean) -> Boolean

Iterator reduction.

  • x: Iterator.
  • init: Initial value.
  • op: Operator.

function reduce(x:Real[_], init:Real, op:@(Real, Real) -> Real) -> Real

Reduction.

  • x: Vector.
  • init: Initial value.
  • op: Operator.

function reduce(x:Integer[_], init:Integer, op:@(Integer, Integer) -> Integer) -> Integer

Reduction.

  • x: Vector.
  • init: Initial value.
  • op: Operator.

function reduce(x:Boolean[_], init:Boolean, op:@(Boolean, Boolean) -> Boolean) -> Boolean

Reduction.

  • x: Vector.
  • init: Initial value.
  • op: Operator.