第8章 函数式编程(FP) 《Kotin 编程思想·实战》

来源:互联网 发布:网络组建论文 编辑:程序博客网 时间:2024/06/07 01:30

第8章 函数式编程(FP)

8.1 函数式编程概述
8.1.1 面向对象编程OOP特征
8.1.2 函数式编程FP特征

8.2 Kotlin函数式编程
8.2.1 函数是什么
8.2.2 函数指针
8.2.3 复合函数(高阶函数)
8.2.4 闭包(closure)
8.2.5 Lambda表达式(匿名函数)
8.2.6 内联函数(inline)
8.2.7 本地函数(Local Functions)
8.2.8 命名参数(NamedParameters)
8.2.9 外部函数external
8.2.10 尾递归tailrec

8.3 函数式Stream API
8.3.1 filter函数
8.3.2 map函数
8.3.3 forEach

阅读全文
0 0
原创粉丝点击