官术网_书友最值得收藏!

Getting Started with Functional Programming in Swift

Getting onto the functional programming bandwagon needs a mindset shift, and changing our mindset is not an easy task as it takes a considerable amount of time to master a paradigm such as object-oriented programming. It needs a thorough approach, but it should also be easy to grasp. That is why we will be introduced to functional programming paradigms first, before going through each topic in detail.

This chapter introduces immutability, pattern matching, closures, as well as pure, first-class, and higher-order functions with Swift. Although all the topics in this chapter will be covered in detail in upcoming chapters, it is going to be helpful to have a broad view of the paradigms. In addition, this chapter will introduce Swift, as it is important to know the basics of the language to utilize in functional programming.

The following topics will be covered, along with examples:

  • Why functional programming matters
  • What is FP?
  • Swift language basics
  • Immutability
  • First-class, higher-order, and pure functions
  • Optionals and pattern matching
  • Closures
  • Type aliasing
主站蜘蛛池模板: 姚安县| 惠来县| 泰宁县| 建阳市| 都昌县| 和硕县| 丹棱县| 固安县| 始兴县| 高邮市| 盐边县| 运城市| 岳池县| 麻阳| 连城县| 扶沟县| 金川县| 金昌市| 承德县| 盘山县| 会昌县| 余江县| 抚宁县| 务川| 安新县| 漠河县| 中牟县| 黄梅县| 邳州市| 娱乐| 盐池县| 剑阁县| 岑巩县| 岑巩县| 福安市| 安多县| 长垣县| 蒙城县| 灵丘县| 凯里市| 绥江县|