Erlang

Hello world

hello.erl -module(hello). -export([start/0]). start() -> io:format("Hello world~n"). 11> c(hello). {ok,hello} 12> hello:start(). Hello world ok

とりあえずHello

$ sudo port install erlang Password: ---> Fetching gawk ---> Attempting to fetch gawk-3.1.6.tar.bz2 from ftp://ftp.dti.ad.jp/pub/GNU/gawk ---> Verifying checksum(s) for gawk ---> Extracting gawk ---> Configuring gawk ---> Building gawk ---…