开发者

How do I specify Tuple for typechecking in Scala, if I take it in as a parameter

开发者 https://www.devze.com 2023-04-03 18:16 出处:网络
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?

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

精彩评论

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