Skip to content

Commit

Permalink
Improve native numbers doc
Browse files Browse the repository at this point in the history
  • Loading branch information
imaqtkatt committed Feb 28, 2024
1 parent d646ab0 commit 978efa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/native-numbers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 978efa3

Please sign in to comment.