Logo

Programming-Idioms

History of Idiom 44 > diff from v11 to v12

Edit summary for version 12 by :

Version 11

2015-08-20, 16:35:23

Version 12

2015-08-21, 16:54:24

Idiom #44 Insert element in list

Insert element x at position i in list s. Further elements must be shifted to the right.

Idiom #44 Insert element in list

Insert element x at position i in list s. Further elements must be shifted to the right.

Code
s.insert(i, x);
Demo URL
https://dartpad.dartlang.org/6190b6c5551043592882