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

WrappedArray.make

No replies
Alexey Romanov
Joined: 2010-06-04,
User offline. Last seen 42 years 45 weeks ago.

In 2.8, calling WrappedArray.make[Boolean](Array(2,3)) returns
scala.collection.mutable.WrappedArray[Boolean] = WrappedArray(2, 3)
instead of a ClassCastException. Is there a case where this behavior
is useful?

Yours, Alexey Romanov

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