List of Listings
Chapter 1. First steps
Listing 1.1. Erlang-based server process that adds two numbers
Listing 1.2. Elixir-based server process that adds two numbers
Listing 1.3. Elixir-based server process to add numbers based on a third-party abstraction
Chapter 2. Building blocks
Listing 2.1. Defining a module (geometry.ex)
Listing 2.2. Functions with the same name but different arities (arity_demo.ex)
Listing 2.3. Same-name functions, different arities, default params (arity_calc.ex)
Listing 2.4. Module with a public and a private function (private_fun.ex)
Chapter 3. Control flow
Listing 3.1. Pattern-matching function arguments (rect.ex)
Get Elixir in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.