replace!

Syntax

replace!(X, oldValue, newValue)

Details

Please refer to replace. The only difference between replace and replace! is that the latter assigns the result to X and thus changing the value of X after the execution.