Double variable argument list.

Posted by Lukasz Lew on Stack Overflow See other posts from Stack Overflow or by Lukasz Lew
Published on 2010-05-09T00:16:07Z Indexed on 2010/05/09 0:18 UTC
Read the original article Hit count: 182

I need something like this:

class Node (left : Node*, right : Node*)

I understand the ambiguity of this signature.

Is there a way around it better than the following?

class Node (left : Array[Node, right : Array[Node])
val n = new Node (Array(n1, n2), Array(n3))

Maybe some kind of separator like this?

val n = new Node (n1, n2, Sep, n3)

© Stack Overflow or respective owner

Related posts about scala

Related posts about scala-2.8