diff --git a/README.md b/README.md index 103096e..91476d4 100644 --- a/README.md +++ b/README.md @@ -64,9 +64,17 @@ foreach m as_map into v exec show_debug_message(fe.key + ": " + string(v)); ``` Range -+ 1 param: from = 0, to = param1, step = 1 -+ 2 params: from = param1, to = param2, step = 1 -+ 3 params: from = param1, to = param2, step = param3 ++ 1 param: from = 0, to = `p1`, step = 1 ++ 2 params: from = `p1`, to = `p2`, step = 1 ++ 3 params: from = `p1`, to = `p2`, step = `p3` +``` +foreach 5 into v exec + show_debug_message(v); +``` +``` +foreach -5, 5 into v exec + show_debug_message(v); +``` ``` foreach -5, 5, 0.5 into v exec show_debug_message(v);