summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstepancheg <stepancheg@epfl.ch>2008-08-26 14:33:17 +0000
committerstepancheg <stepancheg@epfl.ch>2008-08-26 14:33:17 +0000
commitf09222f565f22429af81db21654e203bfa2c92bf (patch)
tree920e9480209f12149b07d3e5cb11a084857a1ec9 /src
parenta3e8c0637f63aceb43506aefac8c14b8068d80b9 (diff)
downloadscala-f09222f565f22429af81db21654e203bfa2c92bf.tar.gz
scala-f09222f565f22429af81db21654e203bfa2c92bf.tar.bz2
scala-f09222f565f22429af81db21654e203bfa2c92bf.zip
Iterator: document that this iterator behavior ...
Iterator: document that this iterator behavior is undefined after takeWhile and dropWhile invocation (#1246)
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/Iterator.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/library/scala/Iterator.scala b/src/library/scala/Iterator.scala
index 5374ffdb02..a73da940ae 100644
--- a/src/library/scala/Iterator.scala
+++ b/src/library/scala/Iterator.scala
@@ -351,6 +351,8 @@ trait Iterator[+A] {
* all elements of the result satisfy the predicate <code>p</code>.
* The order of the elements is preserved.
*
+ * The behavior of <code>this</code> iterator is undefined after this method invocation.
+ *
* @param p the predicate used to filter the iterator.
* @return the longest prefix of this iterator satisfying <code>p</code>.
*/
@@ -359,6 +361,8 @@ trait Iterator[+A] {
/** Skips longest sequence of elements of this iterator which satisfy given
* predicate <code>p</code>, and returns an iterator of the remaining elements.
*
+ * The behavior of <code>this</code> iterator is undefined after this method invocation.
+ *
* @param p the predicate used to skip elements.
* @return an iterator consisting of the remaining elements
*/