Chapter 11Getting Functional with Elixir

by Dave Thomas

In the preceding chapter, we looked at the basics of pattern matching and saw how it is universal in Elixir—it’s the only way to bind a value to a variable or parameter. That may have seemed like an unusual way to start talking about functional programming, but it’s very natural for Elixir. And pattern matching really shines when we apply it to functions, which we’ll explore in depth in this chapter.

Get Functional Programming: A PragPub Anthology 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.