[TASK] Solved Day 1 (but not very pretty)

This commit is contained in:
2023-12-01 23:36:11 +01:00
parent 446422e0d2
commit feef5b4740
3 changed files with 57 additions and 20 deletions

View File

@@ -54,6 +54,7 @@ impl<T: Clone + Sized> Grid<T> {
&self.data[idx]
}
#[allow(dead_code)]
pub fn set(&mut self, x: &usize, y: &usize, v: T) {
let idx = self.idx(x, y);
self.data[idx] = v;