deelang/demo/real.dee

20 lines
318 B
Plaintext
Raw Normal View History

## Obligatory
fizzbuzz <- ->
loop(range(100), x ->
if x % 15 = 0 print("fizzbuzz")
elif x % 3 = 0 print("fizz")
elif x % 5 = 0 print("buzz")
else print(x)
)
fizzbuzz()
2024-11-14 15:49:37 -06:00
print()
ack <- m -> n ->
if m = 0 n + 1
elif n = 0 ack(m - 1, 1)
else ack(m - 1, ack(m, n - 1))
print(ack(3, 4)) ## 125