Logo

Programming-Idioms

History of Idiom 165 > diff from v2 to v3

Edit summary for version 3 by steenslag:
New Ruby implementation by user [steenslag]

Version 2

2017-10-21, 20:01:02

Version 3

2017-10-23, 10:51:07

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 = items.last