Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (14 sloc) 0.228 kb
-module(funs).
-export([listen/0, add/2, cat/2, fac/1]).
listen() ->
rebar:start().
add(A, B) ->
A + B.
cat(A, B) ->
A ++ B.
fac(N) ->
fac(1, N).
fac(Memo, 0) ->
Memo;
fac(Memo, N) ->
fac(Memo * N, N - 1).
Jump to Line
Something went wrong with that request. Please try again.