File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1258,7 +1258,8 @@ operation.
1258
1258
X < String repetition operator > .
1259
1259
1260
1260
Repeats the string C < $a > C < $b > times, if necessary coercing C < $a > to L « C < Str > |/type/Str»
1261
- and C < $b > L « C < Int > |/type/Int» . Returns an empty string if C << $b <= 0 >> .
1261
+ and C < $b > L « C < Int > |/type/Int» . Returns an empty string if C << $b <= 0 >> . An exception
1262
+ C < X::Numeric::CannotConvert > will be thrown if C < $b > is C < -Inf > or C < NaN > .
1262
1263
1263
1264
say 'ab' x 3; # OUTPUT: «ababab»
1264
1265
say 42 x 3; # OUTPUT: «424242»
@@ -1286,7 +1287,8 @@ Defined as:
1286
1287
In general, it returns a Sequence of C < $a > repeated and evaluated C < $b > times
1287
1288
(C < $b > is coerced to L < Int|/type/Int > ). If C << $b <= 0 >> , the empty list is
1288
1289
returned. It will return an error with no operand, and return the operand itself
1289
- with a single operand.
1290
+ with a single operand. An exception C < X::Numeric::CannotConvert > will be
1291
+ thrown if C < $b > is C < -Inf > or C < NaN > .
1290
1292
1291
1293
The left-hand side is evaluated for each repetition, so
1292
1294
You can’t perform that action at this time.
0 commit comments