Coding Through the Alphabet - Fibonacci in Uiua
Uiua (pronounced “wee-wah”) is a stack-based array programming language inspired by APL and BQN. It uses a unique set of Unicode glyphs for its built-in operations and is designed for concise, expressive array manipulation.
How to test
Prerequisites: Uiua
Install via Cargo (Rust package manager):
cargo install uiua
Or download a pre-built binary from https://github.com/uiua-lang/uiua/releases
uiua run fibonacci.ua
Expected output:
0
1
1
2
3
5
8
13
21
34
Source Code
# Fibonacci sequence in Uiua
# ⍥⊡+ repeats ⊡+ (add-below) 10 times, collecting each initial value
# Starting from 1 and 0, the 10 collected values are the Fibonacci sequence
≡&p ⍥⊡+10 1 0
Local Testing Screenshot
