Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/map2-right/docs/types/index.d"

Index

Type aliases

ArrayCallback

Callback invoked for each pair of array elements.

param

element from the first input array

param

element from the second input array

param

element index

param

first input array

param

second input array

returns

result

ArrayQuaternary

ArrayQuaternary: (v1: any, v2: any, index: number, x: Collection) => any

Callback invoked for each pair of array elements.

param

element from the first input array

param

element from the second input array

param

element index

param

first input array

returns

result

Type declaration

    • (v1: any, v2: any, index: number, x: Collection): any
    • Parameters

      Returns any

ArrayQuinary

ArrayQuinary: (v1: any, v2: any, index: number, x: Collection, y: Collection) => any

Callback invoked for each pair of array elements.

param

element from the first input array

param

element from the second input array

param

element index

param

first input array

param

second input array

returns

result

Type declaration

Binary

Binary: (v1: any, v2: any) => any

Callback invoked for each pair of array elements.

param

element from the first input array

param

element from the second input array

returns

result

Type declaration

    • (v1: any, v2: any): any
    • Parameters

      • v1: any
      • v2: any

      Returns any

Callback

Callback invoked for each pair of array elements.

param

element from the first input array

param

element from the second input array

param

element index

param

first input array

param

second input array

returns

result

Nullary

Nullary: () => any

Callback invoked for each pair of array elements.

returns

result

Type declaration

    • (): any
    • Returns any

Quaternary

Quaternary: (v1: any, v2: any, index: number, x: ndarray) => any

Callback invoked for each pair of array elements.

param

element from the first input array

param

element from the second input array

param

element index

param

first input array

returns

result

Type declaration

    • (v1: any, v2: any, index: number, x: ndarray): any
    • Parameters

      • v1: any
      • v2: any
      • index: number
      • x: ndarray

      Returns any

Quinary

Quinary: (v1: any, v2: any, index: number, x: ndarray, y: ndarray) => any

Callback invoked for each pair of array elements.

param

element from the first input array

param

element from the second input array

param

element index

param

first input array

param

second input array

returns

result

Type declaration

Ternary

Ternary: (v1: any, v2: any, index: number) => any

Callback invoked for each pair of array elements.

param

element from the first input array

param

element from the second input array

param

element index

returns

result

Type declaration

    • (v1: any, v2: any, index: number): any
    • Parameters

      • v1: any
      • v2: any
      • index: number

      Returns any

Unary

Unary: (v1: any) => any

Callback invoked for each pair of array elements.

param

element from the first input array

returns

result

Type declaration

    • (v1: any): any
    • Parameters

      • v1: any

      Returns any

Variables

Export assignment map2Right

map2Right: Routine

Applies a function to elements in two input arrays while iterating from right to left and assigns the results to a new array.

Notes

  • The applied function is provided the following arguments:

    • v1: element from first input array.
    • v2: element from second input array.
    • idx: element index.
    • x: first input array.
    • y: second input array.
param

first input array

param

second input array

param

function to apply

param

input function context

returns

output array