Skip to content

Commit 40b4ae3

Browse files
committed
[v6.d REVIEW] .iterator is given by Mu not Any
Propspec: Raku/roast@1e19bd722d1ac7cf0f8
1 parent 0fe4143 commit 40b4ae3

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

doc/Type/Any.pod6

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -962,19 +962,6 @@ L«C<List.combinations>|/type/List#routine_combinations» on it.
962962
963963
say Any.combinations; # OUTPUT: «(() ((Any)))␤»
964964
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-
978965
=head2 method grep
979966
980967
Defined as:

doc/Type/Mu.pod6

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ L<Any|/type/Any>.
1616
1717
=head1 Methods
1818
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+
1933
=head2 method defined X<|method,defined>
2034
2135
Declared as

0 commit comments

Comments
 (0)