You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RuleScript supports [String Interpolation](https://haxe.org/manual/lf-string-interpolation.html), but you can only use identifiers, double quotes string, calls without arguments and `+` operator.
86
86
```haxe
87
87
var a = 'Hello';
88
88
trace('RuleScript: $a World'); // RuleScript: Hello World
@@ -173,6 +173,19 @@ a = null;
173
173
a ??= 'world';
174
174
trace(a) // world
175
175
```
176
+
177
+
# Rest
178
+
```haxe
179
+
var f = function(hello:String, ...rest:Dynamic)
180
+
{
181
+
return '$hello: ' + rest.join(' ');
182
+
}
183
+
184
+
trace(f('Rulescript','Hello','World','!')); // Rulescript: Hello World !
185
+
186
+
trace(f('Rulescript',...['Hello','World','!'])); // Rulescript: Hello World !
187
+
```
188
+
176
189
# Limitations
177
190
178
191
- Script `using` callback supports max number of arguments is 8.
0 commit comments