We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89bbba5 commit eb79bc4Copy full SHA for eb79bc4
aoclp_solutions/src/y2025/day_01.rs
@@ -1,5 +1,6 @@
1
use std::iter::{once, successors};
2
use std::str::FromStr;
3
+
4
use aoclp::anyhow::anyhow;
5
use aoclp::solvers_impl::input::safe_get_input_as_many;
6
@@ -34,9 +35,9 @@ fn all_moves() -> impl Iterator<Item = i64> {
34
35
dial = rotation.apply(dial);
36
37
let tick = rotation.direction.one_tick();
- successors(Some(from), move |int_dial| {
38
- Some(tick.apply(*int_dial))
39
- }).skip(1).take(rotation.clicks as usize)
+ successors(Some(from), move |int_dial| Some(tick.apply(*int_dial)))
+ .skip(1)
40
+ .take(rotation.clicks as usize)
41
}))
42
}
43
0 commit comments