mirror of
https://github.com/Baipyrus/AoC-23.git
synced 2024-11-15 02:03:49 +00:00
rename difference extrapolation
This commit is contained in:
parent
633e1a8566
commit
630170e636
@ -11,7 +11,7 @@ pub fn main() {
|
||||
let sequences = convert_num(input);
|
||||
let structures: Vec<Vec<Vec<i32>>> = 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<i32>) -> Vec<Vec<i32>> {
|
||||
fn extra_diff(seq: Vec<i32>) -> Vec<Vec<i32>> {
|
||||
let mut structure = vec![seq];
|
||||
let mut index = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user