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

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
主站蜘蛛池模板: 九江市| 呈贡县| 湖南省| 华亭县| 双峰县| 双桥区| 怀柔区| 石台县| 绥芬河市| 高邮市| 永仁县| 栾城县| 崇仁县| 乡宁县| 漳州市| 连平县| 泊头市| 平度市| 贵州省| 丰宁| 灯塔市| 湖北省| 惠州市| 额济纳旗| 宝应县| 泸定县| 奉化市| 白玉县| 临沂市| 松江区| 城口县| 河北省| 镇雄县| 墨江| 隆昌县| 泾源县| 寿宁县| 那曲县| 丰都县| 措美县| 南平市|