Click or drag to resize

VectorTMapIndexed Method

Overload List
 NameDescription
Public methodMapIndexed(FuncInt32, T, T, VectorT, Zeros) Applies a function to each value of this vector and replaces the value in the result vector. The index of each value (zero-based) is passed as first argument to the function. If forceMapZero is not set to true, zero values may or may not be skipped depending on the actual data storage implementation (relevant mostly for sparse vectors).
Public methodMapIndexedTU(FuncInt32, T, TU, Zeros) Applies a function to each value of this vector and returns the results as a new vector. The index of each value (zero-based) is passed as first argument to the function. If forceMapZero is not set to true, zero values may or may not be skipped depending on the actual data storage implementation (relevant mostly for sparse vectors).
Top
See Also