Wrapping Up

You’ve seen the full power of functions. Higher-order functions play an important role in a lot of Elixir’s core functions and libraries. Let’s review what you’ve learned about higher-order functions in this chapter:

  • They are very handy for creating useful functions with a simple interface.

  • They are present everywhere, such as when working with lists, files, processes, and I/O.

  • Elixir features such as the pipe operator and partial application are useful for combining functions and delaying function evaluation.

  • They build a fundamental interface to functions that have lazy computation.

In the next chapter, we’ll cover exciting features for designing our application entities. We’ll see how to create structs, polymorphisms, and behaviours. ...

Get Learn Functional Programming with Elixir 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.