File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1289,7 +1289,13 @@ Throws an exception if an element can not be coerced into Numeric.
1289
1289
say (1, "0xff").sum; # OUTPUT: «256»
1290
1290
say sum(0b1111, 5); # OUTPUT: «20»
1291
1291
1292
- When being called on native integer arrays, it is also possible to specify
1292
+ If the list includes a C < Junction > , the result will accordingly be a
1293
+ C < Junction > :
1294
+
1295
+ = for code
1296
+ say ( 1|2, 3).sum; # OUTPUT: «any(4, 5)»
1297
+
1298
+ When called on native integer arrays, it is also possible to specify
1293
1299
a C < :wrap > named parameter. This will add the values as native integers,
1294
1300
wrapping around if they exceed the size of a native integer. If you are
1295
1301
sure you will not exceed that value, or if you don't mind, using C < :wrap >
You can’t perform that action at this time.
0 commit comments