Expand description
util just provides a couple of utility functions to make life easier.
Functionsยง
linspace
allows eases the creation aVec
of values to use as the x values on a plot. Once that is done, it is straightforward to map some function over thatVec
to get the y values.zip2
will combine twoVec<T>
into a singleVec<(T, T)>
with a length equal to the length of the shorter inputVec
. Rust has a built inzip
function, but it has a signature that yieldsVec<(&T, &T)>
which is undesirable.