From 0d70a69eb04c50b1227248df17ca1ae7fef3ac34 Mon Sep 17 00:00:00 2001 From: Oliver Anteros Date: Fri, 12 Jul 2024 10:03:14 +0200 Subject: [PATCH] chore: Fix typo in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3ac0554..49800d4 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ pub fn main() { io.debug(fac(10)) // Tail recursive factorial - let memo_fac = recursive.func(fn (it, res, f) { + let memo_fac = recursive.func2(fn (it, res, f) { case it { 0 -> res _ -> f(it - 1, res * it) @@ -71,7 +71,7 @@ pub fn main() { io.debug(fac(10, 1)) // Tail recursive fibonacci - let fib = recursive.func(fn (it, curr, prev, f) { + let fib = recursive.func3(fn (it, curr, prev, f) { case it { 0 -> curr _ -> f(it - 1, curr + prev, curr)