From 7146c35f9eced450333520ce9962cee074161726 Mon Sep 17 00:00:00 2001 From: Daniel Cerqueira Date: Fri, 5 Sep 2025 17:24:56 +0100 Subject: hopefully fixed all errors in examples/ --- examples/hanoi.lali | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/hanoi.lali') diff --git a/examples/hanoi.lali b/examples/hanoi.lali index cf82382..59e3d10 100644 --- a/examples/hanoi.lali +++ b/examples/hanoi.lali @@ -7,15 +7,15 @@ (newline)) (defun hanoi-move (num from to via) - (fill ((! num 1) + (fill ((dif num +1) (hanoi-print num from to)) (f (prog - (hanoi-move (- num 1) from via to) + (hanoi-move (- num +1) from via to) (hanoi-print num from to) - (hanoi-move (- num 1) via to from))))) + (hanoi-move (- num +1) via to from))))) (defun hanoi (num) (hanoi-move num 'L 'M 'R)) -(hanoi 3) +(hanoi +3) -- cgit