summaryrefslogtreecommitdiff
path: root/src/code/1/atoms
blob: fe6b2b85459de9f62965d069bd44d01811dd876a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
iex> :atom
:atom
iex> :ok
:ok
iex> :error
:error
iex> Foobar
Foobar
iex> :this_is_a_long_atom_dont_do_this
:this_is_a_long_atom_dont_do_this

iex> Atom.to_string :foo
"foo"
iex> String.to_atom "foo"
:foo
iex> String.to_atom "foo with a space and bar"
:"foo with a space and bar"