diff options
author | Matthias Zenger <mzenger@gmail.com> | 2003-07-08 12:02:31 +0000 |
---|---|---|
committer | Matthias Zenger <mzenger@gmail.com> | 2003-07-08 12:02:31 +0000 |
commit | e5770ffd3075ac20100bc8b8b655b20949db8c0e (patch) | |
tree | 65e743d09f7941bc5392d1bdbb087fd800b5a605 /sources/scala/collection/Set.scala | |
parent | e7e6cc4243f9f42efa0e62a5b81796eaa051e4f5 (diff) | |
download | scala-e5770ffd3075ac20100bc8b8b655b20949db8c0e.tar.gz scala-e5770ffd3075ac20100bc8b8b655b20949db8c0e.tar.bz2 scala-e5770ffd3075ac20100bc8b8b655b20949db8c0e.zip |
Changed names in all the files and started to a...
Changed names in all the files and started to add some comments. The
collection classes do not yet compile.
Diffstat (limited to 'sources/scala/collection/Set.scala')
-rw-r--r-- | sources/scala/collection/Set.scala | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sources/scala/collection/Set.scala b/sources/scala/collection/Set.scala index 3f9912d984..080a198e0e 100644 --- a/sources/scala/collection/Set.scala +++ b/sources/scala/collection/Set.scala @@ -7,9 +7,22 @@ ** $Id$ \* */ -package scala; +package scala.collection; +/** This trait defines the interface of collections that do not contain + * duplicate elements. Trait <code>Set</code> may only be used for + * accessing elements from set implementations. Two different extensions + * of trait <code>Set</code> in the package <code>scala.collections.mutable</code> + * and <code>scala.collections.immutable</code> provide functionality for + * adding new elements to a set. The trait in the first package is implemented + * by sets the are modified destructively, whereas the trait in the second + * package is used by functional set implementations that rely on immutable + * data structures. + * + * @author Matthias Zenger + * @version 1.0, 08/07/2003 + */ trait Set[A] with Iterable[A] { def size: Int; |