package scalax.collection.immutable
import generic.covariant
/** 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 OrderedIterable[+A] extends collection.OrderedIterable[A] with Iterable[A]
object OrderedIterable extends covariant.IterableFactory[OrderedIterable] {
val empty: OrderedIterable[Nothing] = Nil
}