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

Re: case class with varargs not immutable

No replies
Garrett Rowe 2
Joined: 2009-03-23,
User offline. Last seen 42 years 45 weeks ago.

Ahh. Nice. I hadn't thought of that.

> Okay, try this:
>  c.n match {
>   case wa: scala.collection.mutable.WrappedArray[Int] => wa(1) = 1
> }
>
>

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