Skip to content

Commit 028cc3e

Browse files
authored
Fixup roundrobin docs
- It ain't a method, but a sub Closes rakudo/rakudo#1447 - Tweak description: lists *can* be of equal length if the number of items is the same
1 parent 517c494 commit 028cc3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/Type/List.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,12 +1159,12 @@ C<with> parameter with a meta-operator :
11591159
11601160
Defined as:
11611161
1162-
method roundrobin(List:D: --> Seq)
1162+
sub roundrobin(+list-of-lists --> Seq)
11631163
11641164
Builds a 'list of lists', returned as a sequence, from multiple input lists or
11651165
other L<iterables|/type/Iterable>. C<roundrobin> returns an identical result to
1166-
that of L<zip|/type/List#routine_zip>, except when the input lists have an
1167-
unequal number of elements.
1166+
that of L<zip|/type/List#routine_zip>, except when the input lists are allowed
1167+
to have an unequal number of elements.
11681168
11691169
say roundrobin <a b c>, <d e f>, <g h i>;
11701170
# OUTPUT: «((a d g) (b e h) (c f i))␤»

0 commit comments

Comments
 (0)