Skip to content

Commit

Permalink
Update syntax_examples.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KennyOliver committed Jan 9, 2025
1 parent 9fb9f50 commit bcfd42d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/syntax_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ These are examples showcasing the unique (& fun) syntax of FlavorLang. They give
18. [Basic Arrays & Operations](#18)
19. [2D Arrays](#19)
20. [Call Functions by Reference (Even in Arrays)](#20)
21. [Sleep](#21)

---

Expand Down Expand Up @@ -516,6 +517,15 @@ for i in 0..(length(c)) {
}
```

### 21. Sleep <a id="21"></a>

```js
for i in 100..=1 by -5 {
serve(i);
sleep(i * 10);
}
```

---

## License
Expand Down

0 comments on commit bcfd42d

Please sign in to comment.