Skip to content

Glossary: Coding Interviews in Rust

enumerate

Also written: iter().enumerate()

An iterator method that gives each item together with its index, as in `for (index, number) in ordered.iter().enumerate()`.

Where the book teaches it

Related terms

Tuple