0

Reverse an N-Dimensional array
code-golf
Given an array (or list), containing integers, of n-dimensions, output an n-dimension array with all sub-elements reversed. That is, reverse all elements of the deepest list, then the second deepest, etc.
Example:
[[[ 1, 2, 3], [ 4, 5, 6], [ 7, 8, 9]],...