oops, forgot end

This commit is contained in:
Alexander Zhuravlev 2013-07-17 05:58:05 +04:00
parent d4f1b64063
commit bc74819760

View File

@ -199,7 +199,7 @@ filter(P, [H|T]) ->
false -> filter(P, T) false -> filter(P, T)
end; end;
filter(P, []) -> []. filter(P, []) -> [].
filter(fun(X) -> X rem 2 == 0, [1, 2, 3, 4]). % [2, 4] filter(fun(X) -> X rem 2 == 0 end, [1, 2, 3, 4]). % [2, 4]
% `if` expressions. % `if` expressions.
max(X, Y) -> max(X, Y) ->