The Iterator Pattern

The iterator pattern is a design pattern which can be used to decouple (traversal) algorithms from containers.

We’ll take a look into what it actually is, how to apply it, and which problems it solves!

What does it state?

1. The elements of an aggregate object should be accessed and traversed without exposing its representation (underlying data structure)




Software Engineer - Content Creator

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Top 3 JavaScript Books for Beginners!

How to use Google-Autocomplete-API(s) and React Native Maps in React Native to fetch user location ?

Drag Map Marker using React Native Maps

shop 101 customer care number@☎9679220920..

Uploading Jest Html Report with Cloud Storage

React native: Fix “line 2: node: command not found Using Node.js” when building with xcode

3/17 Higher-order Functions

Find the minimum and maximum elements in an array

What is UseState() ?

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
Oliver Jumpertz

Oliver Jumpertz

Software Engineer - Content Creator

More from Medium

DI — Dependency Injection

Can console.log() cause memory leaks? How to make a browser crash with console.log()?

I re-wrote Array in JavaScript

When is it okay to duplicate code?