Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (6 sloc) 249 Bytes
defmodule Prelude.Atom do
@moduledoc "Functions operating on `atoms`."
@doc "Converts atoms to strings, leaving existing strings alone."
def to_string(x) when is_atom(x), do: Atom.to_string(x)
def to_string(x) when is_binary(x), do: x
end
You can’t perform that action at this time.