How do I specify Tuple for typechecking in Scala, if I take it in as a parameter
There doesn't seem to be a class called Tuple in the package, only the Tuple_ for effective access. If I want to take a tuple into constructor as a parameter what do I do?
class DataElement( datatype: Datatype, values: () ) extends 开发者_开发问答Element {
This doesn't seem to work
All tuple classes implement Product
, so you could use that.
精彩评论