Control Flow
Until Loop
Imported from the upstream Vibescript examples at control_flow/until_loop.vibe and runnable in the browser today.
Source
control_flow/until_loop.vibe
def collect_until(limit)
out = []
n = 0
until n >= limit
out = out + [n]
n = n + 1
end
out
end
def run
collect_until(5)
end
Output
Press run to execute run from this example.