updated day one to reflext api changes

Dieser Commit ist enthalten in:
Sebastian Tobie 2024-12-08 01:44:21 +01:00
Ursprung bd97c2e422
Commit 61c433eab7

Datei anzeigen

@ -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)] #[allow(unused_imports)]
use advent_of_code::{include_data, include_example}; use advent_of_code::{include_data, include_example};
@ -7,7 +7,8 @@ include_data!(DATAb 2023 01b);
fn main() { fn main() {
let mut sum: u32 = 0; let mut sum: u32 = 0;
for coordinates in DATAa.split('\n').map(get_numbers) {
for coordinates in convert_to_array::<_, _, '\n'>(DATAa, get_numbers::<u32>) {
if coordinates.len() == 0 { if coordinates.len() == 0 {
continue; continue;
} }