transform_reduce


function transform_reduce<Input, Output, Lambda1, Lambda2>(x:Input[_], init:Output, op1:Lambda1, op2:Lambda2) -> Output

Unary transformation and reduction.

  • x First operand.
  • init Initial value.
  • op1 Reduction operator.
  • op2 Transformation operator.

function transform_reduce<Input, Output, Lambda1, Lambda2>(X:Input[_,_], init:Output, op1:Lambda1, op2:Lambda2) -> Output

Unary transformation and reduction.

  • X First operand.
  • init Initial value.
  • op1 Reduction operator.
  • op2 Transformation operator.

function transform_reduce<Input1, Input2, Output, Lambda1, Lambda2>(x:Input1[_], y:Input2[_], init:Output, op1:Lambda1, op2:Lambda2) -> Output

Binary transformation and reduction.

  • x First operand.
  • y Second operand.
  • init Initial value.
  • op1 Reduction operator.
  • op2 Transformation operator.

function transform_reduce<Input1, Input2, Output, Lambda1, Lambda2>(X:Input1[_,_], Y:Input2[_,_], init:Output, op1:Lambda1, op2:Lambda2) -> Output

Binary transformation and reduction.

  • X First operand.
  • Y Second operand.
  • init Initial value.
  • op1 Reduction operator.
  • op2 Transformation operator.

function transform_reduce<Input1, Input2, Input3, Output, Lambda1, Lambda2>(x:Input1[_], y:Input2[_], z:Input3[_], init:Output, op1:Lambda1, op2:Lambda2) -> Output

Ternary transformation and reduction.

  • x First operand.
  • y Second operand.
  • z Third operand.
  • init Initial value.
  • op1 Reduction operator.
  • op2 Transformation operator.

function transform_reduce<Input1, Input2, Input3, Output, Lambda1, Lambda2>(X:Input1[_,_], Y:Input2[_,_], Z:Input3[_,_], init:Output, op1:Lambda1, op2:Lambda2) -> Output

Ternary transformation and reduction.

  • X First operand.
  • Y Second operand.
  • Z Third operand.
  • init Initial value.
  • op1 Reduction operator.
  • op2 Transformation operator.