开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜