Algo::ReplaceIf

Replaces all elements that satisfy the predicate with the given value.