Skip to content

Commit

Permalink
fix example compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Jul 17, 2018
1 parent 6639ef1 commit 896c9bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/Type/List.pod6
Expand Up @@ -1249,6 +1249,7 @@ wrapping around if they exceed the size of a native integer. If you are
sure you will not exceed that value, or if you don't mind, using C<:wrap>
will make the calculation about 20x as fast.
=for code :preamble<my @a>
my int @values = ^1_000_000;
say @a.sum(:wrap); # OUTPUT: «499999500000␤»
Expand Down

0 comments on commit 896c9bd

Please sign in to comment.