This site is version 0.0.1. Most of the code on this site is drafted by an agent and needs review. I apologize
for the AI-speak, we are working on rewriting it!
The program’s map: every function and which calls which.
There’s no recorded run of this program yet.
Shift+Enter in a cell runs it and moves to the next. Running a cell runs every cell above it too, as one program.
[1]lines 1–34
# Control flow: recursion, while, for, break/continue, if/else.deffact(n) {
if n <=1.0 {
return1.0
}
return n *fact(n -1.0)
}
defsum_range(n) {
s =0.0for i to n {
s = s + i
}
return s
}
deffirst_ge(n, limit) {
r =0.0for i to n {
if i >= limit {
r = i
break
}
}
return r
}
print(fact(5.0))
print(sum_range(5.0))
print(first_ge(100.0, 7.0))
# SPDX-License-Identifier: MIT OR Apache-2.0# SPDX-FileCopyrightText: 2026 The Viv authors