This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Bug? I hope so.

1 reply
nilskp
Joined: 2009-01-30,
User offline. Last seen 1 year 27 weeks ago.
Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_26).Type in expressions to have them evaluated. Type :help for more information.
scala> val seq: Seq[Int] = Array(1,2,3) seq: Seq[Int] = WrappedArray(1, 2, 3)
scala> val immutable = seq.toStreamimmutable: scala.collection.immutable.Stream[Int] = Stream(1, ?)
scala> val array = seq.toArray array: Array[Int] = Array(1, 2, 3)
scala> array(0)=333;array(1)=666;array(2)=999
scala> immutable.foreach(println) 1666999

moors
Joined: 2010-10-06,
User offline. Last seen 36 weeks 4 days ago.
Re: Bug? I hope so.

thanks for reporting! --> https://issues.scala-lang.org/browse/SI-5319

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland