[erlang-questions] obsolete messages
Gleb Peregud
gleber.p@REDACTED
Tue Jun 1 22:35:33 CEST 2010
is_atom/1 and is_list/1
On Tue, Jun 1, 2010 at 22:31, Wes James <comptekki@REDACTED> 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?
>
> thx,
>
> -wes
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>
More information about the erlang-questions
mailing list