095 recursive value event

✓ Passing This code compiles and runs correctly.

Code

input.kz

Actual

15

Expected output

15

Flows

flow ~define click a branch to expand · @labels scroll to their anchor
define (name: "leq-zero", source: blk: { const Result = union(enum) { yes: void, no: void }; const __v: i64 = {{ expr }}; if (__v <= 0) { break :blk Result{ .yes = {} }; } else { break :blk Result{ .no = {} }; } })
subflow ~sum-to click a branch to expand · @labels scroll to their anchor
leq-zero (expr: n)
flow ~sum-to click a branch to expand · @labels scroll to their anchor
sum-to (n: 5)

Test Configuration

MUST_RUN