Skip to content

Commit

Permalink
Added more comments, removed StructuralEquality...
Browse files Browse the repository at this point in the history
Added more comments, removed StructuralEquality trait.
  • Loading branch information
Matthias Zenger committed Aug 31, 2003
1 parent 325b15e commit 8ac3654
Show file tree
Hide file tree
Showing 15 changed files with 589 additions and 620 deletions.
18 changes: 7 additions & 11 deletions sources/scala/BufferedIterator.scala
Expand Up @@ -4,27 +4,23 @@
** __\ \/ /__/ __ |/ /__/ __ | **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
** $Id$
\* */

// $Id$

package scala;


/**
* Buffered iterators are iterators which allow to inspect the next
* element without discarding it.
/** Buffered iterators are iterators which allow to inspect the next
* element without discarding it.
*
* @author Martin Odersky
* @version 1.0, 16/07/2003
* @author Martin Odersky
* @version 1.0, 16/07/2003
*/
trait BufferedIterator[+A] extends Iterator[A] {

/**
* Checks what the next available element is.
/** Checks what the next available element is.
*
* @return the current element
* @return the current element
*/
def head: A;

}
22 changes: 9 additions & 13 deletions sources/scala/Iterable.scala
Expand Up @@ -4,29 +4,25 @@
** __\ \/ /__/ __ |/ /__/ __ | **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
** $Id$
\* */

// $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.
/** 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
* @author Matthias Zenger
* @version 1.0, 16/07/2003
*/
trait Iterable[+A] {

/**
* Creates a new iterator over all elements contained in this
* object.
/** Creates a new iterator over all elements contained in this
* object.
*
* @return the new iterator
* @return the new iterator
*/
def elements: Iterator[A];

}

0 comments on commit 8ac3654

Please sign in to comment.