summaryrefslogtreecommitdiff
path: root/docs/reference
diff options
context:
space:
mode:
Diffstat (limited to 'docs/reference')
-rw-r--r--docs/reference/scripting.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/reference/scripting.md b/docs/reference/scripting.md
index 6e64cebb..9a04bfb9 100644
--- a/docs/reference/scripting.md
+++ b/docs/reference/scripting.md
@@ -195,6 +195,8 @@ For loops can iterate over a variety of collections:
- `{for pair in dict {..}}` \
Iterates over the key-value pairs of the [dictionary]($dictionary).
The pairs can also be destructured by using `{for (key, value) in dict {..}}`.
+ It is more efficient than `{for pair in dict.pairs() {..}}` because it doesn't
+ create a temporary array of all key-value pairs.
- `{for letter in "abc" {..}}` \
Iterates over the characters of the [string]($str). Technically, it iterates