-fn read_rows(input: impl std::io::Read) -> Result<Vec<Rowlike>, std::io::Error> {
- Reader::new(std::io::BufReader::new(input).lines()).collect::<Result<Vec<_>, _>>()
+fn read_input(input: impl std::io::Read) -> Result<(Vec<Rowlike>, Config), std::io::Error> {
+ let default_config = Config {
+ column_threshold: 2,
+ };
+ Reader::new(std::io::BufReader::new(input).lines())
+ .collect::<Result<Vec<_>, _>>()
+ .map(|rows| (rows, default_config))