nunopolonia
10/6/2017 - 2:09 AM

Reverse matrix on its vertical axis

Reverse multidimensional array on its vertical axis using recursion in Elixir

def reverse([h | t]), do: [Enum.reverse(h) | reverse(t)]
def reverse([]), do: []