blob: 5a71864148d1e4e1d9f3a6582b6528b22f27016e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2003, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
** $Id$
\* */
package scala;
/** Collection classes supporting this trait provide a method
* <code>elements</code> which returns an iterator over all the
* elements contained in the collection.
*
* @author Matthias Zenger
* @version 1.0, 16/07/2003
*/
trait Iterable[+A] {
/** Creates a new iterator over all elements contained in this
* object.
*
* @return the new iterator
*/
def elements: Iterator[A];
}
|