Skip to main content Svelte Highlight v7.23.1

Uiua language preview

1. Double and sum

a binding arrow, stack glyphs, and a format string
horizon-dark
# double each number and sum
Double ← ×2
Total ← /+ ≡Double [1 2 3 4]
&p $"Total: _" Total
atom-one-dark
# double each number and sum
Double ← ×2
Total ← /+ ≡Double [1 2 3 4]
&p $"Total: _" Total
github-dark
# double each number and sum
Double ← ×2
Total ← /+ ≡Double [1 2 3 4]
&p $"Total: _" Total
dracula
# double each number and sum
Double ← ×2
Total ← /+ ≡Double [1 2 3 4]
&p $"Total: _" Total
nord
# double each number and sum
Double ← ×2
Total ← /+ ≡Double [1 2 3 4]
&p $"Total: _" Total
github
# double each number and sum
Double ← ×2
Total ← /+ ≡Double [1 2 3 4]
&p $"Total: _" Total

2. ASCII-spelled primitives

dup, flip, and over as words instead of glyphs
horizon-dark
Square ← dup×
Swap ← flip
Third ← pop pop
atom-one-dark
Square ← dup×
Swap ← flip
Third ← pop pop
github-dark
Square ← dup×
Swap ← flip
Third ← pop pop
dracula
Square ← dup×
Swap ← flip
Third ← pop pop
nord
Square ← dup×
Swap ← flip
Third ← pop pop
github
Square ← dup×
Swap ← flip
Third ← pop pop

3. Constants

the built-in π and ∞ constants
horizon-dark
Circumference ← ×2×π
IsInfinite ← =∞
atom-one-dark
Circumference ← ×2×π
IsInfinite ← =∞
github-dark
Circumference ← ×2×π
IsInfinite ← =∞
dracula
Circumference ← ×2×π
IsInfinite ← =∞
nord
Circumference ← ×2×π
IsInfinite ← =∞
github
Circumference ← ×2×π
IsInfinite ← =∞