diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-07-22 12:52:07 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-07-22 12:52:07 +0000 |
commit | 5086f869374b6fd6cd1169417d6bbc7713dd62ed (patch) | |
tree | 438a843efd9701010e1c2be9cd7486ce9fa0ed8f | |
parent | 45cf39b3eed55dbb76fe298c533f8e26631660f3 (diff) | |
download | scala-5086f869374b6fd6cd1169417d6bbc7713dd62ed.tar.gz scala-5086f869374b6fd6cd1169417d6bbc7713dd62ed.tar.bz2 scala-5086f869374b6fd6cd1169417d6bbc7713dd62ed.zip |
Deprecated slice(n).
-rw-r--r-- | src/library/scala/Seq.scala | 3 |
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 < 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>. |