()
| 148 | } |
| 149 | |
| 150 | fn read_line() -> String { |
| 151 | let mut line = String::new(); |
| 152 | io::stdin() |
| 153 | .read_line(&mut line) |
| 154 | .expect("failed to read line from stdin"); |
| 155 | line |
| 156 | } |
| 157 | |
| 158 | fn chains_from_line(line: &str) -> impl Iterator<Item = Chain> { |
| 159 | // For simplicity sake, this workshop uses the split function. |