Skip to content

Commit 2dd56f7

Browse files
committed
Fix output value
(1, |$(2, 3), 4) is functionally equivalent with (1, slip($(2, 3)), 4) so both should give the same answer. Whether or not containerness if the list should be taken into account, is possibly another question. But not a documentation issue.
1 parent 4cc4aa5 commit 2dd56f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Language/list.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ value, but unlike the above options, it will break L<Scalars|/type/Scalar>.
284284
285285
say (1, |(2, 3), 4) eqv (1, 2, 3, 4); # OUTPUT: «True␤»
286286
say (1, |$(2, 3), 4) eqv (1, 2, 3, 4); # OUTPUT: «True␤»
287-
say (1, slip($(2, 3)), 4) eqv (1, 2, 3, 4); # OUTPUT: «False␤»
287+
say (1, slip($(2, 3)), 4) eqv (1, 2, 3, 4); # OUTPUT: «True␤»
288288
289289
X<|laziness in Iterable objects>
290290
=head1 Lazy lists

0 commit comments

Comments
 (0)