Iterator和Iterable之间的区别

Iterator和Iterable有什么区别?是另一种亚型吗?在某些实际应用中实际有什么区别?

What is the difference between Iterator and Iterable? Is one sub-type of the other or not? What are the actual differences in some real applications?

我正在尝试阅读一些教程和规范,但是它们都很复杂.

I am trying to read some tutorials and specifications, but they are all very complicated.

(如果有帮助,我正在使用ES6和Babel.)

(I am using ES6 and Babel, if that helps.)



 1 条回答