• + 0 comments

    RUST:

    fn camelcase(s: &str) ->i32 {
        s.chars().fold(1, |acc, l| if l.is_ascii_uppercase() {acc +1} else {acc})
    }