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

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
主站蜘蛛池模板: 湘乡市| 鲜城| 佛教| 烟台市| 平原县| 潮安县| 德江县| 绿春县| 古交市| 乌拉特前旗| 万年县| 县级市| 镇坪县| 那坡县| 黄骅市| 比如县| 兴国县| 灌云县| 镶黄旗| 濮阳县| 大姚县| 安国市| 广汉市| 彭泽县| 贡嘎县| 南雄市| 乌兰察布市| 卫辉市| 瑞昌市| 霍山县| 武陟县| 马鞍山市| 潞城市| 大名县| 时尚| 全椒县| 永修县| 保定市| 塔河县| 大同市| 新疆|