diff --git a/src/bin/2023/01.rs b/src/bin/2023/01.rs index 750436d..ee8716c 100644 --- a/src/bin/2023/01.rs +++ b/src/bin/2023/01.rs @@ -1,4 +1,4 @@ -use advent_of_code::strings::{get_numbers, get_string_numbers}; +use advent_of_code::strings::{convert_to_array, get_numbers, get_string_numbers}; #[allow(unused_imports)] use advent_of_code::{include_data, include_example}; @@ -7,7 +7,8 @@ include_data!(DATAb 2023 01b); fn main() { let mut sum: u32 = 0; - for coordinates in DATAa.split('\n').map(get_numbers) { + + for coordinates in convert_to_array::<_, _, '\n'>(DATAa, get_numbers::) { if coordinates.len() == 0 { continue; }