2016-12-19 49 views

回答

4

我相信這是等價的:

def isRepeated:Boolean = prev.exists(_.prev.exists(_.equals(this))) 
+1

是。美麗!必須愛scala! – itaimarks