Replace an array : replace « Array « Ruby






Replace an array


a = ['a','b','c']

p a.replace([1,2,3]) 

 

Related examples in the same category