File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -781,6 +781,24 @@ Instead of throwing away the first C<$n> elements, it throws away everything
781
781
I < but > the elements indicated by the WhateverCode, in this case all but the last
782
782
one.
783
783
784
+ = head2 method are
785
+
786
+ Defined as:
787
+
788
+ multi method are()
789
+
790
+ Returns the strictest type (or role) to which B < all > elements of the list
791
+ will smartmatch. Returns C < Nil > on an empty list.
792
+
793
+ say (1,2,3).are; # OUTPUT: «(Int)»
794
+ say <a b c>.are; # OUTPUT: «(Str)»
795
+ say <42 666>.are; # OUTPUT: «(IntStr)»
796
+ say (42,666e0).are; # OUTPUT: «(Real)»
797
+ say (42,i).are; # OUTPUT: «(Numeric)»
798
+ say ("a",42,3.14).are; # OUTPUT: «(Cool)»
799
+
800
+ Available as of release 2022.02 of the Rakudo compiler.
801
+
784
802
= head2 method prepend
785
803
786
804
Defined as:
You can’t perform that action at this time.
0 commit comments