Erlang: How to convert Atom to String?

Viewed 3387

I want to convert from atom to string.

Input  =  'hello world'.
Output =  "hello world".

How do I achieve this?

1 Answers

Use atom_to_list:

> atom_to_list('hello world').
"hello world"
Related