aboutsummaryrefslogtreecommitdiff
path: root/help/beginblock.md
blob: 2c61355ad255128757257640ade24aba607b0ee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/beginblock.html).*

# Left Curly Bracket (`{`)

## `{ ...`: Begin Block
[→full documentation](../doc/syntax.md#blocks)

Starts a block, which can be one of:

- Function
- 1-Modifier
- 2-Modifier
- Namespace
- Immediate Block

Must end with a corresponding `}`.

        {𝕨 + 𝕩}   # Function

        {𝕨‿𝔽‿𝕩}   # 1-modifier

        {𝕨‿𝔽‿𝔾‿𝕩} # 2-modifier

        {a ⇐ 5}   # Namespace

        {5+4+6}   # Immediate block