We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea35d8e commit f84804eCopy full SHA for f84804e
lib/Type/Junction.pod
@@ -61,6 +61,14 @@ Usage examples:
61
my @primes_ending_in_1 = grep &is_prime & / 1$ /, 2..100;
62
say @primes_ending_in_1; # 11 31 41 61 71
63
64
+Special care should be taken when using C<all> with arguments that may
65
+produce an empty list:
66
+
67
+ my @a = ();
68
+ so all(@a) # True, because there are 0 False's
69
+ so all(@a, ?@a) # Does what you might have meant by the above
70
+ so all(@a, True) # Explicit way to express the first example
71
72
Negated operators are special-cased when it comes to autothreading.
73
C<$a !op $b> is rewritten internally as C<!($a op $b)>. The outer
74
negation collapses any junctions, so the return value always a plain
0 commit comments