際際滷

際際滷Share a Scribd company logo
lambda expression
Java
 Version1:
Thread t1 = new Thread()
{
public void run()
{
syso(hi);
}
};
 Version 2:
Thread t1 = new Thread(()=>syso(hi));
Thread t1 = new Thread(()=>
{
syso(hi));
more stuff..
});
JavaScript
Lambda expressions
Lambda expressions
Questions
More to come
 Promises
For further reading
 http://stackoverflow.com/documentation/typescript/2353/lambda-
expressions-arrow-functions/8645/function-
body#t=201609262313083247252

More Related Content

Lambda expressions