Elixir v1.1.1 Atom

Convenience functions for working with atoms.

See also Kernel.is_atom/1.

Summary

Functions

Converts an atom to a char list

Converts an atom to a string

Functions

to_char_list(atom)

Specs

to_char_list(atom) :: char_list

Converts an atom to a char list.

Inlined by the compiler.

Examples

iex> Atom.to_char_list(:"An atom")
'An atom'
to_string(atom)

Specs

to_string(atom) :: String.t

Converts an atom to a string.

Inlined by the compiler.

Examples

iex> Atom.to_string(:foo)
"foo"