Smooth, powerful, and small, Elixir is an excellent language for learning functional programming, and with this hands-on introduction, you’ll discover just how powerful Elixir can be. Authors Simon St. Laurent and J. David Eisenberg show you how Elixir combines the robust functional programming of Erlang with an approach that looks more like Ruby, and includes powerful macro features for metaprogramming.
Updated to cover Elixir 1.3, the second edition of this practical book helps you write simple Elixir programs by teaching one skill at a time. Once you pick up pattern matching, process-oriented programming, and other concepts, you’ll understand why Elixir makes it easier to build concurrent and resilient programs that scale up and down with ease.
Chapter 1. Getting Comfortable
Chapter 2. Functions and Modules
Chapter 3. Atoms, Tuples, and Pattern Matching
Chapter 4. Logic and Recursion
Chapter 5. Communicating with Humans
Chapter 6. Lists
Chapter 7. Name-Value Pairs
Chapter 8. Higher-Order Functions and List Comprehensions
Chapter 9. Playing with Processes
Chapter 10. Exceptions, Errors, and Debugging
Chapter 11. Static Analysis, Typespecs, and Testing
Chapter 12. Storing Structured Data
Chapter 13. Getting Started with OTP
Chapter 14. Using Macros to Extend Elixir
Chapter 15. Using Phoenix
Appendix A. An Elixir Parts Catalog
Appendix B. Generating Documentation with ExDoc