
Episode 102: Rust scan (vs C++ & Haskell scans)
ADSP: Algorithms + Data Structures = Programs
00:00
How to Insert Values in Rust-Iterator?
I looked up how to insert in Rust. The first result is extend instead iter, which if you read the docs is putting something at the end. What we want is like a put back. Do they have a put front? Put back? Put back in? I mean, you know, inserting at the beginning is more expensive for certain things such as dynamic vectors or arrays. So... Or a dynamic array, rather.
Play episode from 13:38
Transcript


