otp R6.0B0
Thomas Arts
thomas@REDACTED
Tue Nov 30 08:37:13 CET 1999
Geoff Wong wrote:
> > So I tried the following:
> >
> > not_started_servers(Ss) ->
> > F=fun(X,Y)-> case lists:member(X,Y) of
> > true -> false; false -> true end end,
> ugly(X,Y)->
> case lists:member(X,Y) of
> true -> false;
> false -> true
> end.
IMHO a boolean operator should make the code more readable:
ugly(X,Y)-> not(lists:member(X,Y)).
Note that whenever you write something like true -> false,
you should have used your logic.
Best regards
Thomas
More information about the erlang-questions
mailing list