blob: 6146e6002072c251cc786089647b4b6d27fa0d36 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
object xfor {
import scala.xml.NodeSeq
val books =
<bks>
<title>Blabla</title>
<title>Blubabla</title>
<title>Baaaaaaalabla</title>
</bks>;
new NodeSeq { val theSeq = books.child } match {
case t @ Seq(<title>Blabla</title>) => t
}
//val n: NodeSeq = new NodeSeq { val theSeq = books.child }
//n match {
// case t @ <title>Blabla</title> => t
//}
}
|