Skip to content

Instantly share code, notes, and snippets.

@harmeetsingh0013
Created December 28, 2017 09:42
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 harmeetsingh0013/d5cdb46abef83d0c77df8f84dbeef698 to your computer and use it in GitHub Desktop.
Save harmeetsingh0013/d5cdb46abef83d0c77df8f84dbeef698 to your computer and use it in GitHub Desktop.
/*
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