‘:*’(冒号下划线星号)在Scala中做什么?
def addChild(n: Node, newChild: Node) = n match { case Elem(prefix, label, attribs, scope, child @ _*) => Elem(prefix, label, attribs, scope, child ++ newChild : _*) case _ => error("Can only add children to elements!")}
child ++ newChild : _*
Seq[Node]
Node
: _*
一只甜甜圈
UYOU
精慕HU