Ok, without checking, what do you think happens? (List(0): Seq[Int]) match { case _: List[Int] => 1 case _ => 2 }
-
-
It does, but your answer makes me feel I've missed something obvious - it seemed less intuitive to me that the runtime type of Seq(1) was List than that of List(1)...
-
Yes, you would need to know the specific implementation of `Seq#apply`... which is somewhat arbitrarily a `List`.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.