pub fn str_rev(s: &str) -> String
Expand description

Returns the reversed version of the input string.

Examples

let text = "abcd";
let answer = jabba_lib::jstring::str_rev(text);

assert_eq!(answer, "dcba");