Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
scala> for(i <- 0 to 5) yield { i + 1 }
[[syntax trees at end of parser]] // <console>
package $line3 {
object $read extends scala.AnyRef {
def <init>() = {
super.<init>();
()
};
object $iw extends scala.AnyRef {
def <init>() = {
super.<init>();
()
};
object $iw extends scala.AnyRef {
def <init>() = {
super.<init>();
()
};
val res0 = 0.to(5).map(((i) => i.$plus(1)))
}
}
}
}
[[syntax trees at end of parser]] // <console>
package $line3 {
object $eval extends scala.AnyRef {
def <init>() = {
super.<init>();
()
};
lazy val $result = $line3.$read.$iw.$iw.res0;
lazy val $print: String = {
$line3.$read.$iw.$iw;
"".$plus("res0: scala.collection.immutable.IndexedSeq[Int] = ").$plus(scala.runtime.ScalaRunTime.replStringOf($line3.$read.$iw.$iw.res0, 1000))
}
}
}
res0: scala.collection.immutable.IndexedSeq[Int] = Vector(1, 2, 3, 4, 5, 6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.