Created
September 11, 2016 18:43
-
-
Save loloof64/4ca978ead66146b05e04bddd2ef6186a to your computer and use it in GitHub Desktop.
Reversing a string in Rust
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn main() { | |
| let name_reversed:String = "Loloof64".chars().rev().collect(); | |
| println!("{}", name_reversed); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment