Functional Swift Paperback – November 1, 2014
暫譯: 函數式 Swift

Chris Eidhof, Florian Kugler, Wouter Swierstra

  • 出版商: Florian Kugler
  • 出版日期: 2015-12-13
  • 售價: $1,670
  • 貴賓價: 9.5$1,587
  • 語言: 英文
  • 頁數: 236
  • 裝訂: Paperback
  • ISBN: 3000480056
  • ISBN-13: 9783000480058
  • 相關分類: Apple Developer
  • 無法訂購

商品描述

This book will teach you how to use Swift to apply functional programming techniques to your iOS or OS X projects. These techniques complement object-oriented programming that most Objective-C developers will already be familiar with, providing you with a valuable new tool in your developer's toolbox. We will start by taking a look at Swift's new language features, such as higher-order functions, generics, optionals, enumerations, and pattern matching. Mastering these new features will enable you to write functional code effectively. After that, we will provide several examples of how to use functional programming patterns to solve real-world problems. These examples include a compositional and type-safe API around Core Image, a library for diagrams built on Core Graphics, and a small spreadsheet application built from scratch.

商品描述(中文翻譯)

這本書將教你如何使用 Swift 將函數式編程技術應用於你的 iOS 或 OS X 專案。這些技術補充了大多數 Objective-C 開發者已經熟悉的物件導向編程,為你的開發工具箱提供了一個有價值的新工具。我們將首先看看 Swift 的新語言特性,例如高階函數(higher-order functions)、泛型(generics)、可選型別(optionals)、列舉(enumerations)和模式匹配(pattern matching)。掌握這些新特性將使你能夠有效地編寫函數式代碼。之後,我們將提供幾個示例,展示如何使用函數式編程模式來解決現實世界中的問題。這些示例包括圍繞 Core Image 的組合型和類型安全的 API、一個基於 Core Graphics 的圖表庫,以及一個從零開始構建的小型電子表格應用程式。