Skip to content

Commit 149d850

Browse files
committed
Adds declaration of junctions, refs #2703
1 parent a0ab6a1 commit 149d850

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/Type/Junction.pod6

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ C<none>.
2828
2929
=end table
3030
31+
By default, C<any> Junctions are defined. In order to create the other types of
32+
junctions, you use the string that represents the type followed by any object,
33+
or else call L<C<.all>|/routine/all>, L<C<.none>|/routine/none> or
34+
L<C<.one>|/routine/one> on the object.
35+
3136
Autothreading happens when a junction is bound to a parameter of a code object
3237
that doesn't accept values of type C<Junction>. Instead of producing an error,
3338
the signature binding is repeated for each value of the junction.
@@ -256,4 +261,4 @@ On the other hand, the versions of C<~> that use a string as one argument will j
256261
257262
=end pod
258263

259-
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6
264+
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)