Skip to content

Commit 8e16932

Browse files
authored
Applies some of the changes requested
So that the PR is acceptable.
1 parent 7a7f642 commit 8e16932

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

doc/Type/Mu.pod6

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ Returns the given item to the enclosing C<gather> block, without introducing a n
609609
610610
method so()
611611
612-
Evaluates the item in boolean context (and thus collapses Junctions),
612+
Evaluates the item in boolean context (and thus, for instance, collapses Junctions),
613613
and returns the result.
614614
It is the opposite of C<not>, and equivalent to the
615615
L«C<?> operator|/language/operators#prefix_?».
@@ -623,13 +623,19 @@ then do this thing". For instance,
623623
say "Verbose option detected in arguments";
624624
} # OUTPUT: «Verbose option detected in arguments␤»
625625
626+
The C<$verbose-selected> variable in this case contains a
627+
L<C<Junction>|/type/Junction>, whose value is C<any(any(False, False),
628+
any(False, False), any(False, False), any(True, False))>. That is actually a
629+
I<truish> value; thus, negating it will yield C<False>. The negation of that
630+
result will be C<True>. C<so> is performing all those operations under the hood.
631+
626632
=head2 method not
627633
628634
method not()
629635
630-
Evaluates the item in boolean context (and thus collapses Junctions),
636+
Evaluates the item in boolean context (leading to final evaluation of Junctions, for instance),
631637
and negates the result.
632-
It is the opposite of C<so>, and equivalent to the
638+
It is the opposite of C<so> and its behavior is equivalent to the
633639
L«C<!> operator|/language/operators#prefix_!».
634640
635641
my @args = <-a -e -b>;

0 commit comments

Comments
 (0)