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