File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ if a() | b() | c() {
98
98
}
99
99
= end code
100
100
101
- Junctions are meant to be used as matchers in Boolean context; introspection
101
+ Junctions are meant to be used as matchers in a Boolean context; introspection
102
102
of junctions is not supported. If you feel the urge to introspect a junction,
103
103
use a L < Set|/type/Set > or a related type instead.
104
104
@@ -231,12 +231,16 @@ Defined as:
231
231
multi method new(Junction: \values, Str :$type!)
232
232
multi method new(Junction: Str:D \type, \values)
233
233
234
- Constructor to define a new Junction from the type that defines a Junction and
234
+ Constructor to define a new junction from the type that defines it and
235
235
a set of values.
236
236
237
237
my $j = Junction.new(<Þor Oðinn Loki>, type => "all");
238
238
my $n = Junction.new( "one", 1..6 )
239
239
240
+ The main difference between the two multis is how the type of the C < Junction >
241
+ is passed as an argument; either positionally as the first argument, or as a
242
+ named argument using C < type > .
243
+
240
244
= head2 method defined
241
245
242
246
Defined as:
You can’t perform that action at this time.
0 commit comments