1
什麼是高階函數的等效表達式如下?Scala選項高階函數而不是模式匹配
def isRepeated:Boolean = {
prev match {
case Some(a) => a.prev match {
case Some(b) => b.equals(this)
case None => false
}
case None => false
}
}
是。美麗!必須愛scala! – itaimarks