Wrapping Up

We’ve reached the end of another chapter! You’ve learned that recursive functions are the core of repetition in functional programming. Recursion is a big subject. Let’s see what we’ve covered:

  • We created recursive functions to solve tasks that need repetition.

  • We transformed a collection of data into a new one using recursion.

  • We studied the decrease-and-conquer and divide-and-conquer strategies of solving problems.

  • We saw how to avoid performance problems using tail-recursive functions.

  • We covered strategies to work with unbounded recursion.

  • We saw how named functions are simpler than anonymous functions when working with recursion.

With this knowledge, we can face almost any problem that requires a repetition task using functional ...

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.