Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*
Translation 2:
def funcd(a: Int): Int = a.+(1);
private[this] val inc: Int => Int = {
((a: Int) => Test.this.funcd(a))
};
scala.collection.immutable.List.apply[Int](1, 2, 3, 4, 5).map[Int, List[Int]](Test.this.func)(immutable.this.List.canBuildFrom[Int]);
scala.collection.immutable.List.apply[Int](1, 2, 3, 4, 5).map[Int, List[Int]]({
((a: Int) => Test.this.funcd(a))
})(immutable.this.List.canBuildFrom[Int])
Translation 3:
private[this] val inc: Int => Int = {
{
final <artifact> def $anonfun$inc(a: Int): Int = Test.funcd(a);
((a: Int) => $anonfun$inc(a))
}
};
scala.collection.immutable.List.apply[Int](scala.Predef.wrapIntArray(Array[Int]{1, 2, 3, 4, 5})).map[Int, List[Int]](Test.this.func(), immutable.this.List.canBuildFrom[Int]());
scala.collection.immutable.List.apply[Int](scala.Predef.wrapIntArray(Array[Int]{1, 2, 3, 4, 5})).map[Int, List[Int]]({
{
final <artifact> def $anonfun$new(a: Int): Int = Test.funcd(a);
((a: Int) => $anonfun$new(a))
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment