Md. Arafat Al Mahmud
Md. Arafat Al Mahmud

Reputation: 3214

Erlang: How to convert Atom to String?

I want to convert from atom to string.

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

How do I achieve this?

Upvotes: 3

Views: 4723

Answers (1)

legoscia
legoscia

Reputation: 41568

Use atom_to_list:

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

Upvotes: 10

Related Questions