diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-03-08 03:04:42 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-03-08 03:04:42 -0600 |
commit | 275fb6919260a545ca46181e297cdfe4a1880865 (patch) | |
tree | e2e3fdeb39e5b2a281bf977aafe4653d728783ff /RNA.rs | |
parent | 91aa0faa200421e5a95fc52d20e492288dc94f31 (diff) | |
download | rosalind-275fb6919260a545ca46181e297cdfe4a1880865.tar.gz rosalind-275fb6919260a545ca46181e297cdfe4a1880865.zip |
couple more rust solutions
Diffstat (limited to 'RNA.rs')
-rw-r--r-- | RNA.rs | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +use io::{stdin,stdout,ReaderUtil,WriterUtil}; + +fn main() { + let stdout = stdout(); + for stdin().each_char() |ch| { + match ch { + 'T' => { stdout.write_char('U') } + '\n' => { stdout.write_char(ch); return } + _ => { stdout.write_char(ch) } + } + } +} |