...

/

Passing Functions as Arguments

Passing Functions as Arguments

Learn how you can pass functions as a parameter in other functions.

We'll cover the following...

Functions are just values, so we can pass them to other functions. We use this ability of passing functions around pretty much everywhere in Elixir code. Let’s look at an example:

 ...