[erlang-questions] What is wrong with this list?

Roberto Saccon rsaccon@REDACTED
Tue Sep 4 20:52:35 CEST 2007


In your example, java and python are atoms and not variables.

On 9/4/07, Lone Wolf <hubaghdadi@REDACTED> wrote:
> Hi.
> I have been trying this statement:
> 2> [java | python] = [1, 2, 3, 4, 5, 6].
> But I got the following error:
> =ERROR REPORT==== 4-Sep-2007::17:45:07 ===
> Error in process <0.33.0> with exit value:
> {{badmatch,[1,2,3,4,5,6]},[{erl_eval,
> expr,3}]}
> Why?
> How to read Erlang errors? they are really obfuscated.
> Thank.
>
>
>
> Deep into that darkness peering, long I stood there, wondering, fearing,
> Doubting, dreaming dreams no mortal ever dreamed before.
> E.A Poe
>
>
>
>  ________________________________
> Park yourself in front of a world of choices in alternative vehicles.
> Visit the Yahoo! Auto Green Center.
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>


-- 
Roberto Saccon
http://rsaccon.com



More information about the erlang-questions mailing list