mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00: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)
|
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) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user