English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Online Tools

Erlang Atom

Erlang Atom Atom_to_list Method

This method is used to convert an atom to a list.

Syntax of Atom_to_list(atom)

Parameter

  • atom −This is the atom that needs to be converted to a list value.

Return Value

List values based on atomic input.

-module(helloworld). 
-export([start/0]). 
start() ->   
   io:fwrite("~p~n",[atom_to_list(atom1).

The output of the above program is as follows.

"atom1"

Erlang Atom