From 978efa3b62c0290c53e766dd6e71e370eccf2762 Mon Sep 17 00:00:00 2001 From: imaqtkatt Date: Wed, 28 Feb 2024 10:14:36 -0300 Subject: [PATCH] Improve native numbers doc --- docs/native-numbers.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/native-numbers.md b/docs/native-numbers.md index 29ee32dd4..460d7c91f 100644 --- a/docs/native-numbers.md +++ b/docs/native-numbers.md @@ -63,6 +63,8 @@ fibonacci = λn // n is the argument // If the number is 1, then return 1 1: 1 // Otherwise, return the sum of (fib (n-2 + 1)) and (fib n-2) + // The successor pattern provides a `var`-`successor number` bind + // and it's also possible to define other bind name `2+x` 2+: (+ (fibonacci (+ n-2 1)) (fibonacci n-2)) }