これをコンパイルすると {ok,assignment5} が得られます。
three_a(F) -> fun(Y) -> lists:foldl(F,0,Y).
これを書いてから
F1=assignment5:three_a(fun(X,Sum) -> X+Sum end).
与える
** exception error: undefined function assignment5:three_a/1
助けてください!
これをコンパイルすると {ok,assignment5} が得られます。
three_a(F) -> fun(Y) -> lists:foldl(F,0,Y).
これを書いてから
F1=assignment5:three_a(fun(X,Sum) -> X+Sum end).
与える
** exception error: undefined function assignment5:three_a/1
助けてください!