/* * Use this file if you want to extract helpers from your solutions. * Example import from this file: `use advent_of_code::helpers::example_fn;`. */ pub fn parse_input(input: &str, cons: fn(&str) -> T) -> Vec where Vec: FromIterator, { input.lines().map(cons).collect() }