summaryrefslogtreecommitdiff
path: root/src/library/scalax/collection/immutable/Iterable.scala
blob: c299518d1bdec9e860bd0adf8f7434862b6dad44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package scalax.collection.immutable

import generic.covariant

/** Collection classes mixing in this class provide a method
 *  <code>elements</code> which returns an iterator over all the
 *  elements contained in the collection.
 *
 *  @note If a collection has a known <code>size</code>, it should also sub-type <code>SizedIterable</code>.
 *
 *  @author  Matthias Zenger
 *  @autor   Martin Odersky
 *  @owner   Martin Odersky
 *  @version 2.8
 */
trait Iterable[+A] extends collection.Iterable[A]

object Iterable extends covariant.IterableFactory[Iterable] {
  val empty: Iterable[Nothing] = Nil
}