File tree Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -962,19 +962,6 @@ L«C<List.combinations>|/type/List#routine_combinations» on it.
962
962
963
963
say Any.combinations; # OUTPUT: «(() ((Any)))»
964
964
965
- = head2 method iterator
966
-
967
- Defined as:
968
-
969
- method iterator(--> Iterator)
970
-
971
- Coerces the invocant to a C < list > by applying its L « C < .list > |/routine/list» method and uses
972
- L « C < iterator > |/type/Iterable#method_iterator» on it.
973
-
974
- my $it = Any.iterator;
975
- say $it.pull-one; # OUTPUT: «(Any)»
976
- say $it.pull-one; # OUTPUT: «IterationEnd»
977
-
978
965
= head2 method grep
979
966
980
967
Defined as:
Original file line number Diff line number Diff line change @@ -16,6 +16,20 @@ L<Any|/type/Any>.
16
16
17
17
= head1 Methods
18
18
19
+
20
+ = head2 method iterator
21
+
22
+ Defined as:
23
+
24
+ method iterator(--> Iterator)
25
+
26
+ Coerces the invocant to a C < list > by applying its L « C < .list > |/routine/list»
27
+ method and uses L « C < iterator > |/type/Iterable#method_iterator» on it.
28
+
29
+ my $it = Mu.iterator;
30
+ say $it.pull-one; # OUTPUT: «(Mu)»
31
+ say $it.pull-one; # OUTPUT: «IterationEnd»
32
+
19
33
= head2 method defined X < |method,defined >
20
34
21
35
Declared as
You can’t perform that action at this time.
0 commit comments