Methods

replaceΒΆ

replace(dst:Any, src:Any)

DISCOURAGED. Replace one object with another. dst and src must be of the same type.

Example

a = [1,2,3]
a.replace([4,5])
a  # [4,5]