Methods

replaceΒΆ

replace(something:Eachable1, src:Any, dst:Any)

Replace all occurrences of src with dst
Source: stdlib.ngs:343

something

Instance of any type that has each(something, callback) implemented

Returns

Arr

Example

["ssh", "IP", "w"].replace("IP", "10.0.0.100")  # ['ssh','10.0.0.100','w']