aboutsummaryrefslogtreecommitdiff
path: root/help/currentfunction.md
diff options
context:
space:
mode:
authorrazetime <raghuallthetime@hotmail.com>2022-01-20 11:57:50 +0530
committerrazetime <raghuallthetime@hotmail.com>2022-01-20 11:57:50 +0530
commitf3d45a1ca914d59968531a6d5c409d80b73e53c3 (patch)
treebc89e3b80c84d854f382e03fdbb5a43e08d791b8 /help/currentfunction.md
parent97e5db7fa0bf2389589a99ccd26cf84c1e0ced73 (diff)
complete REPL help for symbols
Diffstat (limited to 'help/currentfunction.md')
-rw-r--r--help/currentfunction.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/help/currentfunction.md b/help/currentfunction.md
new file mode 100644
index 00000000..f2c5e16d
--- /dev/null
+++ b/help/currentfunction.md
@@ -0,0 +1,14 @@
+*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/currentfunction.html).*
+
+# Mathematical Double-struck S (`π•Š`)
+
+## `π•Š`: Current Function
+
+A variable assigned to the current function block. `𝕀` can be used to access the current function block as a value.
+
+`π•Š` can be used for recursion.
+
+ F ← {π•Š 0: 1; 𝕩 Γ— π•Š 𝕩-1} # Factorial
+ F 5
+
+ {𝕀‿𝕀}4 \ No newline at end of file