Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.57 KB

erlang_atoms.livemd

File metadata and controls

56 lines (37 loc) · 1.57 KB

Erlang Atoms

Mix.install([
  {:youtube, github: "brooklinjazz/youtube"},
  {:hidden_cell, github: "brooklinjazz/hidden_cell"},
  {:tested_cell, github: "brooklinjazz/tested_cell"},
  {:utils, path: "#{__DIR__}/../utils"}
])

Navigation

Return Home Report An Issue

Setup

Ensure you type the ea keyboard shortcut to evaluate all Elixir cells before starting. Alternatively, you can evaluate the Elixir cells as you read.

Erlang

Atoms in Elixir are also used to provide access to Erlang tools. If you're not already familiar, Erlang is the low level language that Elixir is built on. It contains a collection of useful tools

For example, there is the :math module, which has math related functionality.

Here's how you can get pi from the :math module.

:math.pi()

You will learn more about how to use Erlang through atoms in future lessons. It's enough for now to be aware that Erlang tools can be accessed through certain atoms.

Your Turn

In the Elixir cell below, create an atom of your favorite element. Mine is :hydrogen because it likes to get along with everyone.

You can find the full list of elements here.

Commit Your Progress

Run the following in your command line from the beta_curriculum folder to track and save your progress in a Git commit.

$ git add .
$ git commit -m "finish erlang atoms section"