@@ -41,38 +41,38 @@ even as C<$@a>.
41
41
42
42
= head3 elems
43
43
44
- multi sub elems(*@ list) returns Int:D
44
+ multi sub elems($ list) returns Int:D
45
45
multi method elems(List:D:) returns Int:D
46
46
47
- Returns the number of elements in the list
47
+ Returns the number of elements in the list.
48
48
49
49
= head3 end
50
50
51
- multi sub end(*@ list) returns Int:D
51
+ multi sub end($ list) returns Int:D
52
52
multi method end(List:D:) returns Int:D
53
53
54
- Returns the index of the last element
54
+ Returns the index of the last element.
55
55
56
56
= head3 keys
57
57
58
- multi sub keys(*@ list) returns List:D
58
+ multi sub keys($ list) returns List:D
59
59
multi method keys(List:D:) returns List:D
60
60
61
- Returns a list of indexes into the list
61
+ Returns a list of indexes into the list (i.e., 0..(@list.elems-1)).
62
62
63
63
= head3 values
64
64
65
- multi sub values(*@ list) returns List:D
65
+ multi sub values($ list) returns List:D
66
66
multi method values(List:D:) returns List:D
67
67
68
68
Returns a copy of the list.
69
69
70
70
= head3 kv
71
71
72
- multi sub kv(*@ list) returns List:D
72
+ multi sub kv($ list) returns List:D
73
73
multi method kv(List:D:) returns List:D
74
74
75
- Returns a list of indexes and values interleaved . For example
75
+ Returns an interleaved list of indexes and values. For example
76
76
77
77
<a b c>.kv
78
78
0 commit comments