~fd/cane-lang

ecfe39391eb3b77a91026fa2c668758279374893 — Ersei Saggi 1 year, 6 months ago cca62bf
Add loop example in docs
1 files changed, 13 insertions(+), 0 deletions(-)

M README.md
M README.md => README.md +13 -0
@@ 267,3 267,16 @@ Loops are similar to control flow. It will execute the string `N` times.
| Name | Args | Notes |
| ---- | ---- | ----- |
| `repeat` | `String, Number` | Executes the string `N` times. `N` must be a non-negative integer. |

Example:

```
; Prints "hi" 100 times ~

(
	[
		(`hi\n' print)
	]
	100 repeat
)
```