text_magic_1 0.1.0

library for strings reverse and is palidrome
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub fn reverse(s : &str)-> String {
    
   s.chars().rev().collect()
}


pub fn ispalidrome(s: &str)-> bool {

    let actual_string = s.to_lowercase();

    actual_string == reverse(&actual_string)
}