Reverse Repeated Printing by shlomif

fn main(){for io::stdin().each_line|s|{println(fmt!("%c %c %?",s[0]as char,s[s.len()-1]as char,str::to_bytes(s).count(&s[0])))}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page