Logo

Programming-Idioms

History of Idiom 165 > diff from v63 to v64

Edit summary for version 64 by programming-idioms.org:
[Dart] +DemoURL

Version 63

2020-10-10, 20:24:17

Version 64

2020-11-05, 14:38:57

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.

Variables
x,items
Variables
x,items
Code
x = items.last;
Code
x = items.last;
Demo URL
https://dartpad.dev/873440f64b7d86e1cb6a41f3f597fffc