objarray : objarray_replace

# objarray_replace objarray_name value_to_search value_to_replace

In the objarray wth name objarray_name each element with valut_to_search is replaced with value_to_replace . No new objarray is created.

e.g.

# example:
set oa [ objarray new_from_to floatarray 0 10]
# --> 0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0
set oa [ objarray set $oa 4 nan]
# --> 0.0 1.0 2.0 3.0 NaN(7ffffe0000000) 5.0 6.0 7.0 8.0 9.0 10.0
objarray_replace oa NaN(7ffffe0000000) 12345
# --> 0.0 1.0 2.0 3.0 12345.0 5.0 6.0 7.0 8.0 9.0 10.0