Skip to content

Commit

Permalink
[List] end, elems
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jun 9, 2012
1 parent 1c3828a commit 3a341a7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/List.pod
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ C<List> stores items sequentially and potentially lazily.
=head2 Methods
=head3 elems
multi sub elems(*@list) returns Int:D
multi method elems(List:D:) returns Int:D
Returns the number of elements in the list
=head3 end
multi sub end(*@list) returns Int:D
multi method end(List:D:) returns Int:D
Returns the index of the last element
=head3 join
multi sub join(Str:D $separator, *@list) returns Str:D
Expand Down

0 comments on commit 3a341a7

Please sign in to comment.