pub fn main() { let txt = std::fs::read_to_string("./input/day12.txt").unwrap(); let input = txt .lines() .map(|s| s.split(" ").collect::>()) .collect::>>(); for line in input { let s = line[0]; let n = line[1] .split(",") .map(|s| s.parse::().unwrap()) .collect::>(); println!("{} {:?}", s, n); } }