aboutsummaryrefslogtreecommitdiff
path: root/help/currentfunction.md
blob: 1367c50bdcb4fc49356a16f95ab7fc0c299d3255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/currentfunction.html).*

# Mathematical Double-struck S (`π•Š`)

## `π•Š`: Current Function
[β†’full documentation](../doc/block.md#self-reference)

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