In Scala, I create a list and then filter it based on a class condition:
val list: List[MyObj] = // fill in with objects that extend MyObj, one of them is class A
val list2 = list filter ({ case A() => false case _ => true })
Is it possible to write the above filter in a more concise form?