Logo

Programming-Idioms

History of Idiom 165 > diff from v31 to v32

Edit summary for version 32 by harsha1306:
[Erlang] adding doc url

Version 31

2019-03-08, 22:54:43

Version 32

2019-03-08, 22:57:38

Idiom #165 Last element of list

Assign to variable x the last element of list items.

Idiom #165 Last element of list

Assign to variable x the last element of list items.

Code
x = lists:last(items)
Code
x = lists:last(items),
Doc URL
http://erlang.org/doc/man/lists.html#last-1