[erlang-questions] case not equal to
Bengt Kleberg
bengt.kleberg@REDACTED
Sat Jan 31 09:53:48 CET 2015
Move '.' to after end.
Bengt
Sent from my iPhone
> On 31 Jan 2015, at 09:43, Roelof Wobben <r.wobben@REDACTED> wrote:
>
> Hello,
>
> I have now this :
>
> read(Key, [Head | List]) ->
> case element(1, Head) of
> Key -> {ok, element(2, Head)};
> _ -> read(Key, List).
> end
>
>
> The second clause must be thay element(1,Head) is not equal to Key,
>
> How do I take care of this.
>
> This gives this error message ; db.erl:20: syntax error before: '.'
>
> and !Key gives the same error message.
>
> Roelof
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list