mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-05-02 19:00:47 +08:00
🎨 format
This commit is contained in:
@@ -15,7 +15,7 @@ var fib = func() {
|
||||
var (a, b) = (1, 1);
|
||||
coroutine.yield(a);
|
||||
coroutine.yield(b);
|
||||
while(1) {
|
||||
while (1) {
|
||||
(a, b) = (b, a + b);
|
||||
coroutine.yield(b);
|
||||
}
|
||||
@@ -95,7 +95,7 @@ println("[2] ok\n");
|
||||
# pressure test
|
||||
for (var t = 0; t < 10; t += 1) {
|
||||
var productor = func() {
|
||||
while(1) {
|
||||
while (1) {
|
||||
coroutine.yield(i);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user