Check out example codes for "ruby &:". It will help you in understanding the concepts better.

Code Example 1

ar.map(&:reverse)

Code Example 2

ar.map { |element| element.reverse }

Learn ReactJs, React Native from akashmittal.com