package scalax.collection.immutable
import generic._
import annotation.unchecked.uncheckedVariance
/** Collection classes mixing in this class provide a method
* elements
which returns an iterator over all the
* elements contained in the collection.
*
* @note If a collection has a known size
, it should also sub-type SizedIterable
.
*
* @author Matthias Zenger
* @autor Martin Odersky
* @owner Martin Odersky
* @version 2.8
*/
trait Iterable[+A] extends collection.Iterable[A]
with IterableTemplate[Iterable, A @uncheckedVariance]
object Iterable extends IterableFactory[Iterable] with EmptyIterableFactory[Iterable] {
val empty: Iterable[Nothing] = Nil
}