Logo

Programming-Idioms

History of Idiom 19 > diff from v38 to v39

Edit summary for version 39 by ThePythonicCow:
[Rust] Doc URL for wrong method (reserve, not reverse)

Version 38

2018-08-03, 20:35:13

Version 39

2018-08-28, 14:44:00

Idiom #19 Reverse a list

Reverse the order of the elements of list x .
This may reverse "in-place" and destroy the original ordering.

Idiom #19 Reverse a list

Reverse the order of the elements of list x .
This may reverse "in-place" and destroy the original ordering.

Code
x.reverse();
Code
x.reverse();
Doc URL
https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.reserve
Origin
https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#examples-5
Origin
https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#examples-5
Demo URL
https://play.rust-lang.org/?gist=288d534d236a3e01f27858ead009d988&version=stable&mode=debug
Demo URL
https://play.rust-lang.org/?gist=288d534d236a3e01f27858ead009d988&version=stable&mode=debug