aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 850b2a5..a4206f4 100644
--- a/README.md
+++ b/README.md
@@ -51,3 +51,5 @@ Let's take a closer look at the factorial function:
```
factorial [ dup 0 <= [ 1 + ] [ dup 1 - factorial * ] if ] def
```
+we check if the input is less than or equal to zero, and if it is, we add one to the input and it is our output.
+Otherwise, we multiply that input by itself minus one.