Since, as @DK. suggested, .graphemes() isn’t available on &str in stable, you might as well just do what @huon suggested in the comments:
fn main() {
let foo = "palimpsest";
println!("{}", foo.chars().rev().collect::<String>());
}
Since, as @DK. suggested, .graphemes() isn’t available on &str in stable, you might as well just do what @huon suggested in the comments:
fn main() {
let foo = "palimpsest";
println!("{}", foo.chars().rev().collect::<String>());
}