mirror of
https://github.com/google/go-jsonnet.git
synced 2025-12-24 18:41:07 +01:00
8 lines
108 B
Jsonnet
8 lines
108 B
Jsonnet
local sum(x, v) =
|
|
if x <= 0 then
|
|
v
|
|
else
|
|
sum(x - 1, x + v) tailstrict;
|
|
|
|
sum(1000, 0)
|