The equals test to be defined properly for case classes with iterated parameters. One option to do is to change the equals method to use "sameElements".
def equals = compare elements but the last with equals, the last with sameElements
The other is to generate arity and element implementations to which the sequence representation is transparent.
def arity = {n. fixed members} -1 + {access last member()}.length
def element(i:Int) = if(i < n. fixed members) {return fixed member_i()} else {
return last member().( i )
}
|