Type Alias IndexNumericMapFunc<ParamLength>

IndexNumericMapFunc<ParamLength>: ((...params: ArrayFixedLength<NumericArray, ParamLength>) => ((i: number) => number))

represents a higher-order scalar function of ParamLength number of array input parameters, which are then manipulated based on index i, for all possible i

Type Parameters

  • ParamLength extends number
const add_hof: IndexNumericMapFunc<2> = (arrX, arrY) => (i) => arrX[i] + arrY[i]