From 01522e81a24bf675f45515bb1ce557273e9e2d86 Mon Sep 17 00:00:00 2001 From: Yago Iglesias Date: Mon, 14 Aug 2023 18:35:37 +0200 Subject: [PATCH] docs: Update README.md section on loops --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e0953f7..99b30b1 100644 --- a/README.md +++ b/README.md @@ -288,7 +288,15 @@ if (a == 1) { #### Loops -For now loops are not supported. To achieve the same result as a loop, use recursion. In the future loops might be supported. +While loops have been implemented, but for now keywords such as `break` and `continue` have not yet been implemented. + +```monkey +let a = 1; +while (a < 4) { + puts(a); + let a = a + 1; +} +``` ### Comments