Control Flow
Until Loop
Repeat work with an until loop.
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 example to run this code.