function arrayAsList(inputArray){

   return reverseList( 
      inputArray.reduce(
         flip(cons),
         emptyList 
      )
   );
}
Converts an array to a list 

   asList([a,b,c])

is equivalent to:
   
   cons(a, cons(b, cons(c, emptyList)))