Skip to content

Commit 8e154a1

Browse files
committed
remove supplying explicit identity from produce examples. Prepending a zero
to the result is unlikely to be desired.
1 parent 46bf352 commit 8e154a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/List.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,8 +763,8 @@ producing with an infix operator:
763763
764764
# The following all do the same thing...
765765
my @numbers = (1,2,3,4,5);
766-
say produce { $^a + $^b }, 0, |@numbers;
767-
say produce * + *, 0, |@numbers;
766+
say produce { $^a + $^b }, @numbers;
767+
say produce * + *, @numbers;
768768
say produce &[+], @numbers; # operator does not need explicit identity
769769
say [\+] @numbers; # most people write it this way
770770

0 commit comments

Comments
 (0)