macro_rules! parse_input {
    ($path:expr) => { ... };
    ($path:expr, $ty:ty) => { ... };
}
Expand description

Parse input into a vec of specified type, or default to Vec<String>. Test out a link to parse_input.

use aoc::parse_input;
assert_eq!(parse_input!("42\n24", u32).unwrap(), vec![42_u32, 24]);
assert_eq!(parse_input!("42").unwrap(), vec![String::from("42")]);