Function to build a list from a given array
A better way to do the same thing
Two ways to reverse an array: which is better?