Table of content:

  • A short introduction
  • What is an iterator
  • How to write an iterator
  • Let’s see how we can build one!
  • Conclusion

A short introduction

If you took some time to learn about design patterns you will most likely run into a reference to or people just saying to look over the “gang of 4” book, which refers to the book: Design Patterns Elements of Reusable Object-Oriented Software by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides and, as you can tell, this a mouth full, thus the “gang of 4” expression was born.

What is an iterator?

The definition of the iterator is kind of vague and…

Bogdan Ariton

I'm a software engineer and designer that cares about changing the world for the better. The mind is always free!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store