mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
15 lines
201 B
TypeScript
15 lines
201 B
TypeScript
export function loopWhile(n: i32): void {
|
|
while (n) {
|
|
n = n - 1;
|
|
}
|
|
}
|
|
|
|
export function loopWhileInWhile(n: i32): void {
|
|
while (n) {
|
|
n = n - 1;
|
|
while (n) {
|
|
n = n - 1;
|
|
}
|
|
}
|
|
}
|