2013-06-22 8 views

risposta

10

Questo è solo il REPL che si sforza di essere utile: sta provando a stampare il nuovo Iterable come parte di ciò che fa quando si restituisce un valore. Puoi incollarlo in un contenitore che non stampa il suo contenuto o sostituire lo toString.

scala> val myI = new Iterable[Int] { def iterator = Iterator.continually(1); 
    | override def toString = "myI" } 
myI: Iterable[Int] = myI 
Problemi correlati