当前位置:网站首页>Lambda expression

Lambda expression

2022-06-10 09:43:00 Leon_ Jinhai_ Sun

summary

​ Lambda yes JDK8 A grammar sugar in . He can simplify the writing of some anonymous inner classes . It is an important embodiment of the idea of functional programming . Let's not focus on what the object is . It's more about what we do with the data .

Core principles

It can be deduced and omitted

The basic format

( parameter list )->{ Code }

原网站

版权声明
本文为[Leon_ Jinhai_ Sun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206100934098582.html