Collections - Trait Iterable - Scala Documentation

自下而上的容器(collection)层次结构具有可迭代的Trait。Trait的所有方法可定义为一个抽象方法,逐个生成容器(collection)元素迭代器。Traversable Trait的foreach方法实现了迭代器的Iterable。下面是具体的实现。


This is a companion discussion topic for the original entry at http://docs.scala-lang.org//zh-cn/overviews/collections/trait-iterable