List.ReplaceValue

List.ReplaceValue(list as list,  oldValue as any, newValue as any,  replacer as function) as list

在值列表 list 中搜索值 oldValue,每次找到后使用替换值 newValue 替换它。

示例:

使用 "A" 替换列表 {"a", "B", "a", "a"} 中的所有 "a" 值。

使用情况:

List.ReplaceValue({"a", "B", "a", "a"}, "a", "A", Replacer.ReplaceText)

输出:

{"A", "B", "A", "A"}

results matching ""

    No results matching ""