提交 4a92d175 编写于 作者: M Mars Liu

fly on exercises

上级 7cf8ee8c
...@@ -6,6 +6,5 @@ ...@@ -6,6 +6,5 @@
"lambda.json", "lambda.json",
"sam.json", "sam.json",
"handler.json" "handler.json"
], ]
"title": "Lambda表达式"
} }
\ No newline at end of file
...@@ -7,7 +7,7 @@ import java.util.function.Function; ...@@ -7,7 +7,7 @@ import java.util.function.Function;
public class App { public class App {
public <T, R> product(Function<T, R> consumer) { public <T, R> product(Function<T, R> consumer) {
// 这里有一段代码生成了 T value 变量 // 省略了 T value 变量 定义代码
return consumer(value); return consumer(value);
} }
// 省略其它代码 // 省略其它代码
......
...@@ -3975,35 +3975,19 @@ ...@@ -3975,35 +3975,19 @@
"通过行为参数化传递代码": { "通过行为参数化传递代码": {
"node_id": "java-fb711fb0dfbb40db974476ea2d9faf9d", "node_id": "java-fb711fb0dfbb40db974476ea2d9faf9d",
"keywords": [], "keywords": [],
"children": [ "children": []
{
"行为参数化": {
"node_id": "java-3a05a505cd514579a52321f0c945d577",
"keywords": [],
"children": []
}
},
{
"简写": {
"node_id": "java-b121d453fc544e188b9ad50476c22f59",
"keywords": [],
"children": []
}
},
{
"高序函数": {
"node_id": "java-db33d9c7f2004cdbbc058254fe536ace",
"keywords": [],
"children": []
}
}
]
} }
}, },
{ {
"Lambda表达式": { "Lambda表达式": {
"node_id": "java-a3b60740abe74bb8a6c16dec381d31c4", "node_id": "java-a3b60740abe74bb8a6c16dec381d31c4",
"keywords": [], "keywords": [
"lambda",
"高阶函数",
"方法引用",
"SAM",
"函数式接口"
],
"children": [ "children": [
{ {
"Lambda概念": { "Lambda概念": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册