[erlang-questions] Easy way to spot undefined & empty lists?

Vik Olliver <>
Tue Apr 14 04:46:15 CEST 2009


What's the nice way to do:

parse_result(undefined) ->
    {error,"String not defined"};
parse_result("") ->
    {error,"String not defined"}.

Vik :v)



More information about the erlang-questions mailing list