transform_reduce

function transform_reduce(x:Real[_], init:Real, op1:@(Real, Real) -> Real, op2:@(Real) -> Real) -> Real

Transform and reducte.

  • x: Vector.
  • init: Initial value.
  • op1: Binary operator.
  • op2: Unary operator.

function transform_reduce(x:Integer[_], init:Integer, op1:@(Integer, Integer) -> Integer, op2:@(Integer) -> Integer) -> Integer

Transform and reducte.

  • x: Vector.
  • init: Initial value.
  • op1: Binary operator.
  • op2: Unary operator.

function transform_reduce(x:Boolean[_], init:Boolean, op1:@(Boolean, Boolean) -> Boolean, op2:@(Boolean) -> Boolean) -> Boolean

Transform and reducte.

  • x: Vector.
  • init: Initial value.
  • op1: Binary operator.
  • op2: Unary operator.