[erlang-questions] obsolete messages

Tuncer Ayaz <>
Tue Jun 1 22:34:50 CEST 2010


On Tue, Jun 1, 2010 at 10:31 PM, Wes James wrote:
> I have some code that I got from an example:
>
> a2l(A) when atom(A) -> atom_to_list(A);
> a2l(L) when list(L) -> L.
>
> l2a(L) when list(L) -> list_to_atom(L);
> l2a(A) when atom(A) -> A.
>
> when compiled it says atom/1 and list/1 are obsolete. What are the
> replacements for atom/1 and list/1 in the context above?

is_atom/1, is_list/1.


More information about the erlang-questions mailing list