Editor\'s note: This question refers to parts of Rust that predate Rust 1.0, but the general concept is still valid in Rust 1.0.
I intend to
The question is to read lines from stdin and return a vector. On Rust 1.7:
fn readlines() -> Vec { use std::io::prelude::*; let stdin = std::io::stdin(); let v = stdin.lock().lines().map(|x| x.unwrap()).collect(); v }