add ***very important*** comment
This commit is contained in:
parent
92bc183dbd
commit
5c84a0b4d2
@ -182,7 +182,7 @@ impl Function {
|
|||||||
(1..=self.pixel_width)
|
(1..=self.pixel_width)
|
||||||
.map(|x| (x as f64 / resolution as f64) + min_x)
|
.map(|x| (x as f64 / resolution as f64) + min_x)
|
||||||
.map(|x| {
|
.map(|x| {
|
||||||
let i_option = x_data.iter().position(|&r| r == x);
|
let i_option = x_data.iter().position(|&r| r == x); // Optimize this later, this could be done much much better
|
||||||
|
|
||||||
if let Some(i) = i_option {
|
if let Some(i) = i_option {
|
||||||
back_cache[i]
|
back_cache[i]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user