Thanks @kepta for the wonderful article. I am able to see "why" iterators be so useful with those 4 "superpowers" 😀
Regarding iterator vs iterables, the way I understood is that,
iterator
iterables
iterable
Did I understand it correctly?
You got that damn right !
Thanks Kushan 👍
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks @kepta for the wonderful article.
I am able to see "why" iterators be so useful with those 4 "superpowers" 😀
Regarding
iterator
vsiterables
, the way I understood is that,iterables
are objects that can be iterated overiterable
objects return aniterator
object with which we can iterate.Did I understand it correctly?
You got that damn right !
Thanks Kushan 👍