Skip to content

Commit 5ef456b

Browse files
authored
Any.reverse returns a Seq, not a List
1 parent 1ba43da commit 5ef456b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/Type/Any.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ into the newly created Array.
111111
112112
Defined as:
113113
114-
multi sub reverse(*@list --> List:D)
115-
multi method reverse(List:D: --> List:D)
114+
multi sub reverse(*@list --> Seq:D)
115+
multi method reverse(List:D: --> Seq:D)
116116
117-
Returns a list with the same elements in reverse order.
117+
Returns a L«C<Seq>|/type/Seq> with the same elements in reverse order.
118118
119119
Note that C<reverse> always refers to reversing elements of a list;
120120
to reverse the characters in a string, use L<flip>.

0 commit comments

Comments
 (0)