Sha256: 9062ea4554d243395098d3f1344b47c16132ae9f58132d7771df990ce5792b53

Contents?: true

Size: 162 Bytes

Versions: 12

Compression:

Stored size: 162 Bytes

Contents

-module(nat).
-export([add/2, fib/1, die/1]).

add(A, B) ->
  A + B.

fib(0) -> 1;
fib(1) -> 1;
fib(N) when N > 1 -> fib(N - 1) + fib(N - 2).

die(X) ->
  X = 10.

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
ernie-2.5.2 examples/nat.erl
ernie-2.5.1 examples/nat.erl
ernie-2.5.0 examples/nat.erl
ernie-2.4.0 examples/nat.erl
ernie-2.3.0 examples/nat.erl
ernie-2.2.1 examples/nat.erl
schleyfox-ernie-2.2.3 examples/nat.erl
schleyfox-ernie-2.2.2 examples/nat.erl
schleyfox-ernie-2.2.1 examples/nat.erl
ernie-2.2.0 examples/nat.erl
ernie-2.1.0 examples/nat.erl
ernie-2.0.0 examples/nat.erl