Reversing A List - Part 2
Last updated
Was this helpful?
Last updated
Was this helpful?
In , I showed how Erlang's :lists.reverse()
function could be used to reverse a list. Since then, Elixir now has a built-in function for reversing lists. In fact, it works with anything that implements the Enumerable
protocol.