Logo

Programming-Idioms

History of Idiom 19 > diff from v12 to v13

Edit summary for version 13 by :

Version 12

2015-09-03, 13:33:15

Version 13

2015-09-03, 13:47:05

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
lists:reverse(List)
Doc URL
http://erldocs.com/current/stdlib/lists.html?i=0&search=lists:rever#reverse/1
Demo URL
http://www.tryerlang.org