查找规定数组中的指定元素,如果找到了则使用替代值替换,否则在规定数组尾部增加替换值。 ```csharp void Set(ref T[] source, Predicate<T> predicate, T value); ```