re: How I learned to Stop Looping and Love the Iterator VIEW POST

VIEW FULL DISCUSSION
 

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,

  1. iterables are objects that can be iterated over
  2. so that means iterable objects return an iterator object with which we can iterate.

Did I understand it correctly?

 
code of conduct - report abuse