Erlang函数定义

-module(helloworld). 
-export([add/2,start/0]). 

add(X,Y) -> 
   Z = X+Y, 
   io:fwrite(~w~n,[Z]). 

start() -> 
   add(5,6).

相关文章

-module(helloworld). -export([start/0]). start() ->...
-module(helloworld). -export([start/0]). start() ->...
-module(helloworld). -export([start/0]). start() ->...
-module(helloworld). -export([start/0]). start() ->...
-module(helloworld). -export([add/2,start/0]). add(X,...
% Erlang整数 -module(helloworld). -export([start/0]). ...