Created
April 2, 2015 06:11
-
-
Save Yuichiroh/a4b8c3c7603aef4ab7dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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