mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-22 14:51:37 +03:00
oops, forgot end
This commit is contained in:
parent
d4f1b64063
commit
bc74819760
@ -199,7 +199,7 @@ filter(P, [H|T]) ->
|
||||
false -> filter(P, T)
|
||||
end;
|
||||
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.
|
||||
max(X, Y) ->
|
||||
|
Loading…
Reference in New Issue
Block a user