()
| 262 | } |
| 263 | |
| 264 | fn read_line() -> String { |
| 265 | let mut line = String::new(); |
| 266 | io::stdin() |
| 267 | .read_line(&mut line) |
| 268 | .expect("failed to read line from stdin"); |
| 269 | line |
| 270 | } |
| 271 | |
| 272 | fn chains_from_line(line: String) -> Vec<Chain> { |
| 273 | // For simplicity's sake, this workshop uses the split function. |