![Figure 17: Data consumers such as the for-of loop use the interface Iterable. Data sources such as Arrays implement that interface.](img/280f482e71372effb950e73849e3a9b6.svg)
![Figure 18: Data consumers such as the for-of loop use the interface Iterable. Data sources such as Arrays implement that interface.](img/280f482e71372effb950e73849e3a9b6.svg)
Figure 17: Data consumers such as the `for-of` loop use the interface `Iterable`. Data sources such as `Arrays` implement that interface.
Figure 18: Data consumers such as the `for-of` loop use the interface `Iterable`. Data sources such as `Arrays` implement that interface.
![Figure 18: Iteration has two main interfaces: Iterable and Iterator. The former has a method that returns the latter.](img/88d42d6e1be2c84a7d851f5eef14ecff.svg)
Figure 18: Iteration has two main interfaces: `Iterable` and `Iterator`. The former has a method that returns the latter.
**iterable* 接口是一个对象,其内容可以顺序遍历。
**迭代器* 是用于遍历的指针。
![Figure 19: Iteration has two main interfaces: Iterable and Iterator. The former has a method that returns the latter.](img/88d42d6e1be2c84a7d851f5eef14ecff.svg)