Skip to content

Commit b72a3db

Browse files
committed
Correct elems, keys, values, kv signatures.
1 parent 4cfb847 commit b72a3db

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/List.pod

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,38 +41,38 @@ even as C<$@a>.
4141
4242
=head3 elems
4343
44-
multi sub elems(*@list) returns Int:D
44+
multi sub elems($list) returns Int:D
4545
multi method elems(List:D:) returns Int:D
4646
47-
Returns the number of elements in the list
47+
Returns the number of elements in the list.
4848
4949
=head3 end
5050
51-
multi sub end(*@list) returns Int:D
51+
multi sub end($list) returns Int:D
5252
multi method end(List:D:) returns Int:D
5353
54-
Returns the index of the last element
54+
Returns the index of the last element.
5555
5656
=head3 keys
5757
58-
multi sub keys(*@list) returns List:D
58+
multi sub keys($list) returns List:D
5959
multi method keys(List:D:) returns List:D
6060
61-
Returns a list of indexes into the list
61+
Returns a list of indexes into the list (i.e., 0..(@list.elems-1)).
6262
6363
=head3 values
6464
65-
multi sub values(*@list) returns List:D
65+
multi sub values($list) returns List:D
6666
multi method values(List:D:) returns List:D
6767
6868
Returns a copy of the list.
6969
7070
=head3 kv
7171
72-
multi sub kv(*@list) returns List:D
72+
multi sub kv($list) returns List:D
7373
multi method kv(List:D:) returns List:D
7474
75-
Returns a list of indexes and values interleaved. For example
75+
Returns an interleaved list of indexes and values. For example
7676
7777
<a b c>.kv
7878

0 commit comments

Comments
 (0)