Skip to main content Svelte Highlight v7.21.1

BQN language preview

1. Double and sum

the define arrow, a system value, and primitive glyphs
horizon-dark
# double each number and sum
Double  ×2
Sum  +´
Total  Sum Double¨1234•Show Total
atom-one-dark
# double each number and sum
Double  ×2
Sum  +´
Total  Sum Double¨1234•Show Total
github-dark
# double each number and sum
Double  ×2
Sum  +´
Total  Sum Double¨1234•Show Total
dracula
# double each number and sum
Double  ×2
Sum  +´
Total  Sum Double¨1234•Show Total
nord
# double each number and sum
Double  ×2
Sum  +´
Total  Sum Double¨1234•Show Total
github
# double each number and sum
Double  ×2
Sum  +´
Total  Sum Double¨1234•Show Total

2. Blocks and roles

block variables and a two-modifier
horizon-dark
Add  {𝕨+𝕩}
Mod2  _fold_ {𝔽 𝕩}
3 Add 4
atom-one-dark
Add  {𝕨+𝕩}
Mod2  _fold_ {𝔽 𝕩}
3 Add 4
github-dark
Add  {𝕨+𝕩}
Mod2  _fold_ {𝔽 𝕩}
3 Add 4
dracula
Add  {𝕨+𝕩}
Mod2  _fold_ {𝔽 𝕩}
3 Add 4
nord
Add  {𝕨+𝕩}
Mod2  _fold_ {𝔽 𝕩}
3 Add 4
github
Add  {𝕨+𝕩}
Mod2  _fold_ {𝔽 𝕩}
3 Add 4

3. System functions

•Type and •Repr
horizon-dark
•Show •Type 5
•Show •Repr "hello"
atom-one-dark
•Show •Type 5
•Show •Repr "hello"
github-dark
•Show •Type 5
•Show •Repr "hello"
dracula
•Show •Type 5
•Show •Repr "hello"
nord
•Show •Type 5
•Show •Repr "hello"
github
•Show •Type 5
•Show •Repr "hello"