Swift函数式编程:第二版
需积分: 10 191 浏览量
更新于2024-07-19
1
收藏 2.46MB PDF 举报
“Packt.Swift.Functional.Programming.2nd.Edition.2017”是一本针对Swift 3.x的全面指南,旨在帮助已有Objective-C/Swift编程基础的iOS、Web和macOS开发者了解并掌握功能编程的世界。书中通过实例介绍如何将函数式编程与面向对象编程(OOP)结合,以编写出更干净、强大且可扩展的代码。书中的案例研究包括使用Swift和Vapor框架构建后端API,以及结合FP、OOP、函数响应式编程(FRP)和协议导向编程(POP)构建iOS应用。
本书适合熟悉面向对象编程,有一定Objective-C/Swift经验的读者,旨在提升其在Swift中运用函数式编程技巧的能力。
读者将学习到:
1. 理解函数式编程的概念及其重要性,了解它如何改善代码结构。
2. 掌握自定义运算符、函数组合、柯里化、递归和记忆化等核心概念。
3. 探索代数数据类型、模式匹配、泛型、关联类型协议和类型擦除。
4. 学习高阶类型和高阶函数,并通过实际例子进行实践。
5. 熟悉处理可选值的函数式和非函数式方法。
6. 使用如半群、幺半群、二叉搜索树、链表、栈和惰性列表等功能数据结构。
7. 明白不可变性、复制构造器和透镜在开发中的重要性。
8. 使用Vapor框架构建后端API。
9. 结合多种编程范式创建iOS应用。
本书采用易于理解的方式,通过实际编码示例讲解函数式编程在Swift中的应用。内容逐步展开,对于有深入探究需求的读者,书中还提供了更多概念的详细信息。全书包括从基础到高级的各个章节,如第一类函数、高阶函数、函数组合、闭包、柯里化、递归、记忆化等。
目录:
- 第1章:引言
- 第2章:Swift中的函数式编程入门
- 第3章:Swift编程语言
- 第4章:概览
- 第5章:第一类函数
- 第6章:高阶函数
- 第7章:函数组合
- 第8章:闭包
- 第9章:函数柯里化
- 第10章:递归
- 第11章:记忆化
- 第12章:总结
此书采用实践导向的风格,用非数学语言解释Swift语言基础和函数式编程技术,通过丰富的Swift示例帮助读者轻松掌握这些概念。
2019-09-23 上传
2018-03-27 上传
2018-01-04 上传
2018-01-22 上传
2018-04-22 上传
2018-01-02 上传
2017-12-29 上传
2017-08-21 上传
2017-08-21 上传
DoomLord
- 粉丝: 114
- 资源: 1318
最新资源
- 新型智能电加热器:触摸感应与自动温控技术
- 社区物流信息管理系统的毕业设计实现
- VB门诊管理系统设计与实现(附论文与源代码)
- 剪叉式高空作业平台稳定性研究与创新设计
- DAMA CDGA考试必备:真题模拟及章节重点解析
- TaskExplorer:全新升级的系统监控与任务管理工具
- 新型碎纸机进纸间隙调整技术解析
- 有腿移动机器人动作教学与技术存储介质的研究
- 基于遗传算法优化的RBF神经网络分析工具
- Visual Basic入门教程完整版PDF下载
- 海洋岸滩保洁与垃圾清运服务招标文件公示
- 触摸屏测量仪器与粘度测定方法
- PSO多目标优化问题求解代码详解
- 有机硅组合物及差异剥离纸或膜技术分析
- Win10快速关机技巧:去除关机阻止功能
- 创新打印机设计:速释打印头与压纸辊安装拆卸便捷性