English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This method is used to determine whether an item is indeed an atom.
is_atom(term)
term −This is the value of the item to be calculated to determine whether it is an atom.
If the computational item is an atom, it returns true, otherwise it returns false.
-module(helloworld). -export([start/0]). start() -> io:fwrite(atom1), io:fwrite("~n"), io:fwrite("~p~n",[is_atom(atom1)]).
The output of the above program is as follows.
atom1 true