Elixir Prelude v0.2.1 Prelude.Atom

Functions operating on atoms.

Summary

Functions

Converts atoms to strings, leaving existing strings alone

Functions

to_string(x)

Converts atoms to strings, leaving existing strings alone.

Example:

iex> Prelude.Atom.to_string("string")
"string"

iex> Prelude.Atom.to_string(:atom)
"atom"