@@ -503,7 +503,7 @@ or C<fail()>, the old value is restored.
503
503
504
504
= head2 infix does
505
505
506
- sub infix:<does>(Mu $obj, Mu $role)
506
+ sub infix:<does>(Mu $obj, Mu $role) is assoc<none>
507
507
508
508
Mixes C < $role > into C < $obj > at run time. Requires C < $obj > to be mutable.
509
509
@@ -512,7 +512,7 @@ to act like a role, for example enum values.
512
512
513
513
= head2 infix but
514
514
515
- sub infix:<but>(Mu $obj, Mu $role)
515
+ sub infix:<but>(Mu $obj, Mu $role) is assoc<none>
516
516
517
517
Creates a copy of C < $obj > with C < $role > mixed in. Since C < $obj > is not
518
518
modified, C < but > can be used to created immutable values with mixins.
@@ -522,7 +522,7 @@ to act like a role, for example enum values.
522
522
523
523
= head2 infix cmp
524
524
525
- multi sub infix:<cmp>($a, $b) returns Order:D
525
+ multi sub infix:<cmp>($a, $b) returns Order:D is assoc<none>
526
526
527
527
Generic, "smart" three-way comparator.
528
528
@@ -537,18 +537,43 @@ if C<$a eqv $b>, then C<$a cmp $b> always returns C<Order::Same>.
537
537
538
538
= head2 infix leg
539
539
540
- multi sub infix:<leg>($a, $b) returns Order:D
540
+ multi sub infix:<leg>($a, $b) returns Order:D is assoc<none>
541
541
542
542
String three-way comparator.
543
543
544
544
Coerces both arguments to L < Str > , and then does a lexicographic comparison.
545
545
546
546
= head2 infix <=>
547
547
548
- multi sub infix:«<=>»($a, $b) returns Order:D
548
+ multi sub infix:«<=>»($a, $b) returns Order:D is assoc<none>
549
549
550
550
Numeric three-way comparator.
551
551
552
552
Coerces both arguments to L < Real > , and then does a numeric comparison.
553
553
554
+ = head2 infix ..
555
+
556
+ multi sub infix:<..>($a, $b) returns Range:D is assoc<none>
557
+
558
+ Constructs a L < Range > from the arguments.
559
+
560
+ = head2 infix ..^
561
+
562
+ multi sub infix:<..^>($a, $b) returns Range:D is assoc<none>
563
+
564
+ Constructs a L < Range > from the arguments, excluding the end point.
565
+
566
+ = head2 infix ^..
567
+
568
+ multi sub infix:<^..>($a, $b) returns Range:D is assoc<none>
569
+
570
+ Constructs a L < Range > from the arguments, excluding the start point.
571
+
572
+
573
+ = head2 infix ^..^
574
+
575
+ multi sub infix:<^..^>($a, $b) returns Range:D is assoc<none>
576
+
577
+ Constructs a L < Range > from the arguments, excluding both start and end point.
578
+
554
579
= end pod
0 commit comments