summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-07-22 12:52:07 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-07-22 12:52:07 +0000
commit5086f869374b6fd6cd1169417d6bbc7713dd62ed (patch)
tree438a843efd9701010e1c2be9cd7486ce9fa0ed8f /src
parent45cf39b3eed55dbb76fe298c533f8e26631660f3 (diff)
downloadscala-5086f869374b6fd6cd1169417d6bbc7713dd62ed.tar.gz
scala-5086f869374b6fd6cd1169417d6bbc7713dd62ed.tar.bz2
scala-5086f869374b6fd6cd1169417d6bbc7713dd62ed.zip
Deprecated slice(n).
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/Seq.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library/scala/Seq.scala b/src/library/scala/Seq.scala
index 968d32ee57..dcfc2ad451 100644
--- a/src/library/scala/Seq.scala
+++ b/src/library/scala/Seq.scala
@@ -355,8 +355,9 @@ trait Seq[+A] extends AnyRef with PartialFunction[Int, A] with Collection[A] {
*
* @param from The index of the first element of the slice
* @throws IndexOutOfBoundsException if <code>from &lt; 0</code>
+ * @deprecated Use <code>drop(n: Int): Seq[A]</code> instead.
*/
- def slice(from: Int): Seq[A] = slice(from, length)
+ @deprecated def slice(from: Int): Seq[A] = slice(from, length)
/** Returns the longest prefix of this sequence whose elements satisfy
* the predicate <code>p</code>.