I want to write a class whose constructor takes two parameters, but the arguments are not really members of the class. eg.
class P(V1:Int, V2:Int) { val set = Set(V1, V2) }
Having built a βkitβ, I really don't care about V1 and V2. Is there any way to express this in Scala?
source share