zahl

Log | Files | Refs | README

commit 2f340def621ac5a0f8e9fa78df26250ca0793e4b
parent 07ee5855a365ce06eb29e62c973a92403a9a0d88
Author: Thomas Vigouroux <thomas.vigouroux@univ-grenoble-alpes.fr>
Date:   Thu, 13 Jun 2024 08:11:49 +0200

fix: update defn syntax in bench

Diffstat:
Mbenchmakrs/fib.scm | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/benchmakrs/fib.scm b/benchmakrs/fib.scm @@ -1,2 +1,5 @@ -(def! fib (fn* (n) (if (< n 2) n (+ (fib (- n 1)) (fib (- n 2)))))) -(print! (fib 20)) +(defn! fib (n) + (if (< n 2) + n + (+ (fib (- n 1)) (fib (- n 2))))) +(print! (fib 30))