aboutsummaryrefslogtreecommitdiff
path: root/help/currentfunction.md
blob: a47150d7464f5ae8dda9eac454e147834a4ce367 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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. `𝕀` accesses the same value but has a subject role.

`π•Š` can be used for recursion.

        F ← {π•Š 0: 1; 𝕩 Γ— π•Š 𝕩-1} # Factorial
        F 5

        {𝕀‿𝕀}4