All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Iterator?

Definition 15.5 University Computer Science — Year 1 · Chapter 15 — Linked Structures: Lists, Stacks and Queues

An iterator over a structure is a value that designates a position in it, with an operation that tells whether elements remain and an operation that returns the next element and advances. A loop written with an iterator works on every structure that provides one.

Read in context →