If I make a variable like this:
val x = <a>H<b>i</b>!</a>
how does Scala represent the text objects? If I were making the system, you'd have some List of elements that looks something like this:
L(0): TextElement = TextElement("h")
L(1): BElement = BElement(TextElement("i"))
L(2): TextElement = TextElement("!")
But I don't see anything about text elements in any documentation (or really very much about how this works at all.)
How is it implemented in Scala?