From 630170e6364769a535cd7844816da69a3c91f987 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Wed, 24 Jan 2024 22:45:57 +0100 Subject: [PATCH] rename difference extrapolation --- src/day09/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/day09/mod.rs b/src/day09/mod.rs index 69e51e2..99aadc0 100644 --- a/src/day09/mod.rs +++ b/src/day09/mod.rs @@ -11,7 +11,7 @@ pub fn main() { let sequences = convert_num(input); let structures: Vec>> = sequences .iter() - .map(|s| extrapolate(s.to_vec())) + .map(|s| extra_diff(s.to_vec())) .collect(); for seq in structures[0].clone() { @@ -22,7 +22,7 @@ pub fn main() { } } -fn extrapolate(seq: Vec) -> Vec> { +fn extra_diff(seq: Vec) -> Vec> { let mut structure = vec![seq]; let mut index = 0;