2
나는이 오류가 계속 내 얼랑 스크립트 컴파일하려고하면 다음과 같습니다얼랑 구문 오류
([email protected])15> c(distribute).
distribute.erl:55: syntax error before:
distribute.erl:42: function get_completed/3 undefined
error
을 내 자료 :
get_completed(Current, Index, Count) ->
if
length(Current) >= Index ->
{Count, length(Current)};
true ->
if
lists:nth(Index, Current) == 'timeout' ->
get_completed(Current, Index+1, Count);
true ->
get_completed(Current, Index+1, Count+1)
end
end
라인 (55)은 지난 end
은 이전 함수 정의가'.'로 올바르게 끝났습니까? –