‘:*’(冒号下划线星号)在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: _*
qq_花开花谢_0
一只甜甜圈
UYOU
精慕HU
随时随地看视频慕课网APP