News for hackers. Stuff that matters.
Re:Rust 1.55.0 by nextaccountic on Thursday September 09, 2021 @04:52PM (#28474511)
array.map is not inline, it consumes the array and returns another https://doc.rust-lang.org/std/primitive.array.html#method.ma...

But yes in the end this is all done in the stack

We could have an inline version of map (for arrays and Vec) if we had a way to assert that two types have the same size. This means we can reuse the buffer because all elements will fit.

There are no comments on this comment yet.