collect « Array « Ruby






1.you can convert an array on the fly using the collect method
2.collect with code block
3.Change array elements with collect!