Logo

Programming-Idioms

History of Idiom 19 > diff from v32 to v33

Edit summary for version 33 by mitosis:
New Elixir implementation by user [mitosis]

Version 32

2017-06-09, 15:30:17

Version 33

2017-11-23, 02:47:28

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
list = [1, 2, 3, 4, 5]
Enum.reverse(list)