Erlang: How to convert Atom to String?

最后都变了- 提交于 2020-12-16 01:51:42

问题


I want to convert from atom to string.

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

How do I achieve this?


回答1:


Use atom_to_list:

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


来源:https://stackoverflow.com/questions/53865898/erlang-how-to-convert-atom-to-string

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!