Skip to content

Instantly share code, notes, and snippets.

@Yuichiroh
Created April 2, 2015 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yuichiroh/a4b8c3c7603aef4ab7dd to your computer and use it in GitHub Desktop.
Save Yuichiroh/a4b8c3c7603aef4ab7dd to your computer and use it in GitHub Desktop.
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