List.ReplaceValue
List.ReplaceValue(list as list, oldValue as any, newValue as any, replacer as function) as list
Busca el valor oldValue
en una lista de valores list
y sustituye cada coincidencia por el valor de reemplazo newValue
.
Reemplazar todos los valores "a" de la lista {"a", "B", "a", "a"} por "A".
Uso
List.ReplaceValue({"a", "B", "a", "a"}, "a", "A", Replacer.ReplaceText)
Salida
{"A", "B", "A", "A"}