Logo

Programming-Idioms

History of Idiom 44 > diff from v8 to v9

Edit summary for version 9 by :

Version 8

2015-08-01, 17:46:35

Version 9

2015-08-19, 17:24:57

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);
Origin
http://doc.rust-lang.org/std/vec/struct.Vec.html#method.insert
Demo URL
http://is.gd/70EXU4