【发布时间】:2010-10-09 05:37:56
【问题描述】:
我只是想知道,我可以在 Scala 中将元组类型分解为其组件的类型吗?
我的意思是,像这样的
trait Container {
type Element
}
trait AssociativeContainer extends Container {
type Element <: (Unit, Unit)
def get(x : Element#First) : Element#Second
}
【问题讨论】: