summaryrefslogtreecommitdiff
path: root/src/library/scalax/collection/Sequence.scala
diff options
context:
space:
mode:
authorAntonio Cunei <antonio.cunei@epfl.ch>2008-11-25 18:05:48 +0000
committerAntonio Cunei <antonio.cunei@epfl.ch>2008-11-25 18:05:48 +0000
commitaf47e5b433ea538bf096a176c88f3c91116e09cd (patch)
treeb3e66e93fb653570ebbef16183cf4f2be2111c12 /src/library/scalax/collection/Sequence.scala
parent2d61f09332dbc6038f869c6a23a95dca1bc3b6c7 (diff)
downloadscala-af47e5b433ea538bf096a176c88f3c91116e09cd.tar.gz
scala-af47e5b433ea538bf096a176c88f3c91116e09cd.tar.bz2
scala-af47e5b433ea538bf096a176c88f3c91116e09cd.zip
Merging everything from the 2.8.x development b...
Merging everything from the 2.8.x development branch back to trunk. - If you were working on trunk, please keep working on trunk If you were - working on 2.8-devel, please switch to trunk now
Diffstat (limited to 'src/library/scalax/collection/Sequence.scala')
-rwxr-xr-xsrc/library/scalax/collection/Sequence.scala45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/library/scalax/collection/Sequence.scala b/src/library/scalax/collection/Sequence.scala
new file mode 100755
index 0000000000..0ee88e3575
--- /dev/null
+++ b/src/library/scalax/collection/Sequence.scala
@@ -0,0 +1,45 @@
+/* __ *\
+** ________ ___ / / ___ Scala API **
+** / __/ __// _ | / / / _ | (c) 2003-2008, LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
+** /____/\___/_/ |_/____/_/ | | **
+** |/ **
+\* */
+
+// $Id: Sequence.scala 16092 2008-09-12 10:37:06Z nielsen $
+
+
+package scalax.collection
+
+import generic._
+
+/** Class <code>Sequence[A]</code> represents finite sequences of elements
+ * of type <code>A</code>.
+ *
+ * @author Martin Odersky
+ * @author Matthias Zenger
+ * @version 1.0, 16/07/2003
+ */
+trait Sequence[+A] extends OrderedIterable[A] with SizedIterable[A] with covariant.SequenceTemplate[Sequence, A]
+
+object Sequence extends covariant.SequenceFactory[Sequence] {
+
+ /** The empty sequence */
+ val empty : Sequence[Nothing] = null // !!!
+
+ type View[+UC[+B] <: Sequence[B], +A] = covariant.SequenceView[UC, A]
+
+ /** @deprecated use View instead
+ */
+ @deprecated type Projection[A] = View[C, A] forSome { type C[+B] <: Sequence[B] }
+
+ /** @deprecated use Sequence(value) instead */
+ @deprecated def singleton[A](value: A) = Sequence(value)
+
+ /** Builds a singleton sequence.
+ *
+ * @deprecated use <code>Sequence(x)</code> instead.
+ */
+ @deprecated def single[A](x: A) = singleton(x)
+}
+