Elixir v1.7.4 Atom View Source

Convenience functions for working with atoms.

See also Kernel.is_atom/1.

Link to this section Summary

Functions

Converts an atom to a charlist

Converts an atom to a string

Link to this section Functions

Link to this function to_charlist(atom) View Source
to_charlist(atom()) :: charlist()

Converts an atom to a charlist.

Inlined by the compiler.

Examples

iex> Atom.to_charlist(:"An atom")
'An atom'
Link to this function to_string(atom) View Source
to_string(atom()) :: String.t()

Converts an atom to a string.

Inlined by the compiler.

Examples

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