Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Functional Swift
Introduction
Thinking Functionally
Example: Battleship
First-Class Functions
Type-Driven Development
Notes
Case Study: Wrapping Core Image
The Filter Type
Theoretical Background: Currying
Discussion
Map, Filter, Reduce
Introducing Generics
Filter
Reduce
Putting It All Together
Generics vs. the Any Type
Notes
Optionals
Case Study: Dictionaries
Working with Optionals
Why Optionals?
Case Study: QuickCheck
Building QuickCheck
Making Values Smaller
The Value of Immutability
Variables and References
Value Types vs. Reference Types
Discussion
Enumerations
Introducing Enumerations
Associated Values
Adding Generics
Swift Errors
Optionals Revisited
The Algebra of Data Types
Why Use Enumerations?
Purely Functional Data Structures
Binary Search Trees
Autocompletion Using Tries
Discussion
Case Study: Diagrams
Drawing Squares and Circles
The Core Data Structures
Discussion
Iterators and Sequences
Iterators
Sequences
Case Study: Traversing a Binary Tree
Case Study: Better Shrinking in QuickCheck
Case Study: Parser Combinators
The Parser Type
Combining Parsers
Parsing Arithmetic Expressions
A Swifty Alternative for the Parser Type
Case Study: Building a Spreadsheet Application
Parsing
Evaluation
User Interface
Functors, Applicative Functors, and Monads
Functors
Applicative Functors
The M-Word
Discussion
Conclusion
Further Reading
Closure
Bibliography
← Prev
Back
Next →
← Prev
Back
Next →