So in theory, sum_of_n will produce a Vec where each item is the gaussian sum up to that point. I’m starting from 1 just for clarity.
[gauss(1), gauss(2), gauss(3), gauss(4)] etc
[1, 3, 6, 10] etc
It seems like res is never getting those values pushed, because I don’t see anything printing…?
I’m not a rust expert, so maybe I am glossing over an important detail here.