5 lines
185 B
Text
5 lines
185 B
Text
extern crate unicode_segmentation;
|
|
use unicode_segmentation::UnicodeSegmentation;
|
|
fn is_palindrome(string: &str) -> bool {
|
|
string.graphemes(true).eq(string.graphemes(true).rev())
|
|
}
|