We've stopped offering our services, but you can check our last product which is still in active development.

humadroid.io is an employee and performance management software. It's an unique tool allowing everyone to be in the loop - by having up to date info about co-workers, time-off, benefits, assets, helping with one-on-ones, being a go-to place for company-wide announcements.

Check out humadroid.io
Want to learn?

Atoms

Representation

Documentation

An atom is a constant which name is its value. Every atom starts with colon and ends with word or operator known for Elixir. Things to remember when creating an atom:

  • must be a sequence of UTF-8 letters,

  • might consist of digits,

  • might include the underscore,

  • might include @,

  • might end with ? or !,

  • can be created with any string when enclosed within quotes.

Example of atoms:

:hello, :"hello world", :+, :===, :exists?

Two atoms with the same naming always represent the same value.

iex> :hello == :hello
true
iex> :hello == :"hello"
true
iex> :hello == :"hello world"
false

You can check if given value is atom with is_atom/1 function:

iex> is_atom :hello
true
iex> is_atom "hello"
false
iex> is_atom :"hello"
true

You'll be using atoms very often to tag values.

We've stopped offering our services, but you can check our last product which is still in active development.

humadroid.io is an employee and performance management software. It's an unique tool allowing everyone to be in the loop - by having up to date info about co-workers, time-off, benefits, assets, helping with one-on-ones, being a go-to place for company-wide announcements.

Check out humadroid.io
Top

Notice

We do not track you online. We use only session cookies and anonymous identifiers for the purposes specified in the cookie policy. No third-party trackers.

I understand
Elo Mordo!Elo Mordo!