RosettaCodeData/Task/Reverse-a-string/Rust/reverse-a-string-4.rust

5 lines
147 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
use unicode_segmentation::UnicodeSegmentation;
let output: String = "as⃝df̅".graphemes(true).rev().collect();
assert_eq!(output, "f̅ds⃝a");