Skip to content

Commit eb191b5

Browse files
authored
andthen returns Empty, not first undefined arg
By design, to make it flatten into lists
1 parent d5c7777 commit eb191b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/Language/operators.pod6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2256,7 +2256,8 @@ to misuse, see L<traps|/language/traps#Loose_boolean_operators>.
22562256
22572257
=head2 infix C«andthen»
22582258
2259-
Returns the first undefined argument, otherwise the last argument.
2259+
Returns L«C<Empty>|/type/Slip#index-entry-Empty-Empty» unpon encountering
2260+
the first undefined argument, otherwise the last argument.
22602261
Short-circuits. The result of the left side is bound to $_ for the
22612262
right side, or passed as arguments if the right side is a block or
22622263
pointy block.

0 commit comments

Comments
 (0)