List.ReplaceValue
List.ReplaceValue(list as list, oldValue as any, newValue as any, replacer as function) as list
Hakee arvoluettelosta arvoa list
, oldValue
ja korvaa kunkin esiintymän korvaavalla arvolla newValue
.
Korvaa kaikki "a"-arvot luettelossa {"a", "B", "a", "a"} arvolla "A".
käyttö
List.ReplaceValue({"a", "B", "a", "a"}, "a", "A", Replacer.ReplaceText)
Output
{"A", "B", "A", "A"}