Error Undefined function in Erlang

Viewed 1301

This on compiling gives {ok,assignment5}.

 three_a(F) -> fun(Y) -> lists:foldl(F,0,Y).

After writing this

F1=assignment5:three_a(fun(X,Sum) -> X+Sum end).

Gives

** exception error: undefined function assignment5:three_a/1

Please help out!

1 Answers
Related