Functions as Data

Let’s learn about using functions as a datatype in Elixir.

Remember that since Elixir is a functional language, all functions are data. Sometimes using functions can offer tremendous performance wins.

Drawing a square without a function

Here is one way to store the drawing instructions for a square:

Executable

Get hands-on with 1400+ tech skills courses.