SHARE
TWEET

Untitled

a guest Nov 14th, 2018 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -module(simple_server).
  2. -export( [sayHello/0] ).
  3.  
  4. -callback say(Num :: term()) -> term().
  5.  
  6. sayHello() ->
  7.     io:fwrite( "Hello 1: ~pn", [ say(1) ]) ,
  8.     io:fwrite( "Hello 2: ~pn", [ say(2) ]) .
  9.    
  10. $ erlc simple_server.erl
  11. simple_server.erl:7: function say/1 undefined
  12. simple_server.erl:8: function say/1 undefined
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top