Replaces every occurrence of a value with a new value.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Vector<T> ReplaceValue(
T oldValue,
T newValue
)
Public Function ReplaceValue (
oldValue As T,
newValue As T
) As Vector(Of T)
public:
Vector<T>^ ReplaceValue(
T oldValue,
T newValue
)
member ReplaceValue :
oldValue : 'T *
newValue : 'T -> Vector<'T>
Parameters
- oldValue
- Type: T
The value to replace. - newValue
- Type: T
The replacement value.
Return Value
Type:
VectorTA new vector with every occurrence of
oldValue
replaced with
newValue.
Reference