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 3254d02 commit d7abc10Copy full SHA for d7abc10
doc/Type/Any.pod6
@@ -84,8 +84,8 @@ L<none>-L<Junction> from it.
84
85
Defined as:
86
87
- multi method list(Any:U: -->List)
88
- multi method list(Any:D \SELF: -->List)
+ multi method list(Any:U: --> List)
+ multi method list(Any:D \SELF: --> List)
89
90
91
Applies the infix L«C<,>|/routine/,»
@@ -95,6 +95,10 @@ and returns the resulting L<List>:
95
say 42.list.^name; # OUTPUT: «List»
96
say 42.list.elems; # OUTPUT: «1»
97
98
+Subclasses of C<Any> may choose to return any L<Positional> type
99
+from L«C<.list>|/routine/list>. Use L«C<.List>|/routine/List> to
100
+coerce specifically to L<List>.
101
+
102
=head2 method push
103
104
0 commit comments