Introducing Elixir: Getting Started in Functional ProgrammingElixir is an excellent language if you want to learn about functional programming, and with this hands-on introduction, you’ll discover just how powerful and fun Elixir can be. This language combines the robust functional programming of Erlang with a syntax similar to Ruby, and includes powerful features for metaprogramming. This book shows you how to 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.
|
Contents
Chapter 1 Getting Comfortable | 1 |
Chapter 2 Functions and Modules | 11 |
Chapter 3 Atoms Tuples and Pattern Matching | 25 |
Chapter 4 Logic and Recursion | 37 |
Chapter 5 Communicating with Humans | 51 |
Chapter 6 Lists | 61 |
Chapter 7 NameValue Pairs | 73 |
Chapter 8 HigherOrder Functions and List Comprehensions | 87 |
Chapter 10 Exceptions Errors and Debugging | 119 |
Chapter 11 Storing Structured Data | 131 |
Chapter 12 Getting Started with OTP | 153 |
Chapter 13 Using Macros to Extend Elixir | 167 |
Appendix A An Elixir Parts Catalog | 175 |
Appendix B Generating Documentation with ExDoc | 183 |
187 | |
About the Authors | 193 |