Check out example codes for "reverse list swift". It will help you in understanding the concepts better.

Code Example 1

var arr: [Int] = [1, 2, 3]
arr.reverse() // .reverse() will reverse the list.

Learn ReactJs, React Native from akashmittal.com