For example:
array[:] = {1,2,1,2,1,2};
iReplace[2] = {3,1};
valueR[size(iReplace,1)] = {-1,-2};
Returns:
y = {-2,2,-1,2,1,2};
function replaceArrayValues extends TRANSFORM.Icons.Function; input Real orig[:] "Original array"; input Integer index[:] "Indices of values to be replaced"; input Real value[size(index, 1)] "Replacement values"; output Real new[size(orig, 1)] "Array with replaced values"; end replaceArrayValues;