Logo

Programming-Idioms

History of Idiom 19 > diff from v15 to v16

Edit summary for version 16 by :

Version 15

2015-09-03, 13:51:42

Version 16

2015-09-04, 09:08:04

Idiom #19 Reverse a list

Reverse the order of the elements of list x .
This may reverse "in-place" and destroy the original ordering.

Idiom #19 Reverse a list

Reverse the order of the elements of list x .
This may reverse "in-place" and destroy the original ordering.

Code
Enum.reverse(x)
Doc URL
http://elixir-lang.org/docs/v1.0/elixir/Enum.html#reverse/1
Demo URL
http://play.elixirbyexample.com/s/4240ea9fe1