Uiua 99bottles
Uiua 是一门还在迭代开发中的、基于堆栈(stack-based)的阵列编程(array programming)语言,在设计上借鉴了 BQN、APL、J 语言。
瓶 ← (
⍣("No" @s °0|1 "" °1|:@s)
$"_ bottle_ of beer"
)
墙 ← $"_ on the wall" 瓶
拿 ← ⍣(
⍩($"Go to the store, buy some more,\n_" 墙99) °0
| ⍩($"Take one down, pass it around,\n_" 墙-1)
)
⇌⇡100
&p /$"_\n\n_" ≡(□$"_,\n_.\n_." ⊃(墙|瓶|拿))