summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/Array.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library/scala/Array.scala b/src/library/scala/Array.scala
index 2dbeebb1ba..540a63a2dc 100644
--- a/src/library/scala/Array.scala
+++ b/src/library/scala/Array.scala
@@ -49,7 +49,7 @@ object Array {
*
* @param xs ...
*/
- def concat[T](xs: Array[T]*) = {
+ def concat[T](xs: Seq[T]*) = {
var len = 0
for (x <- xs) len += x.length
val result = new Array[T](len)
@@ -195,6 +195,8 @@ object Array {
override def slice(from0 : Int, until0 : Int) =
Projection.this.slice(from + from0, from + until0)
}
+
+
override def reverse : Projection[A] = new Projection[A] {
override protected def newArray[B >: A](length : Int, elements : Iterator[A]) =
Projection.this.newArray(length, elements)