We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00cac2f commit 0b5a6bdCopy full SHA for 0b5a6bd
iterator/README.md
@@ -1,7 +1,9 @@
1
# Iterator Design Pattern
2
3
An interface with **next** and **has_next** methods.
4
+
5
**next** returns the next object in the aggregate(collection, list)
6
7
**has_next** returns a value, usually a boolean indicating if the iterable is at the end of the list or not.
8
9
The benefits of using the Iterator pattern is that the client, can traverse an aggregate without needing to understand it's internal representation
0 commit comments