Task: Use Libraries

Elixir comes with a bunch of libraries preinstalled. Some are written in Elixir, and others in Erlang.

The first port of call is http://elixir-lang.org/docs/, the Elixir documentation. Often you’ll find a built-in library that does what you want.

Next, check if any standard Erlang libraries do what you need. This isn’t a simple task. Visit http://erlang.org/doc/ and look in the left sidebar for Application Groups. There you’ll find libraries sorted by top-level category.

If you find what you’re looking for in either of these places, you’re all set, as all these libraries are already available to your application. But if the built-in libraries don’t have what you need, you’ll have to add an external dependency.

Finding an ...

Get Programming Elixir 1.2 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.