Skip to content

Commit 3a341a7

Browse files
committed
[List] end, elems
1 parent 1c3828a commit 3a341a7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/List.pod

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ C<List> stores items sequentially and potentially lazily.
88
99
=head2 Methods
1010
11+
=head3 elems
12+
13+
multi sub elems(*@list) returns Int:D
14+
multi method elems(List:D:) returns Int:D
15+
16+
Returns the number of elements in the list
17+
18+
=head3 end
19+
20+
multi sub end(*@list) returns Int:D
21+
multi method end(List:D:) returns Int:D
22+
23+
Returns the index of the last element
24+
1125
=head3 join
1226
1327
multi sub join(Str:D $separator, *@list) returns Str:D

0 commit comments

Comments
 (0)