From 293916c8f4dc109082ecd709e5e4c19a0847b0cd Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 9 Feb 2024 21:02:57 +0100 Subject: wip --- step-03/tut1.erl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 step-03/tut1.erl (limited to 'step-03/tut1.erl') diff --git a/step-03/tut1.erl b/step-03/tut1.erl new file mode 100644 index 0000000..2d8c465 --- /dev/null +++ b/step-03/tut1.erl @@ -0,0 +1,7 @@ +-module(tut1). +-export([fac/1]). + +fac(1) -> + 1; +fac(N) -> + N * fac(N - 1). -- cgit v1.2.3