Logo

Programming-Idioms

History of Idiom 165 > diff from v30 to v31

Edit summary for version 31 by harsha1306:
New Erlang implementation by user [harsha1306]

Version 30

2019-02-09, 04:56:44

Version 31

2019-03-08, 22:54:43

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)