DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUST
reverse vec rust
x.reverse(); // in place let y: Vec<_> = x.into_iter().rev().collect(); // x is unchanged
Source by programming-idioms.org #
PREVIOUS
NEXT
Tagged:
#reverse
#vec
#rust
ADD COMMENT
Topic
COMMENT
Name
8+6 =
Submit