Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added docs for Baggy.elems
  • Loading branch information
Jan-Olof Hendig committed Jun 10, 2016
1 parent fef2e8e commit 2bd9117
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion doc/Type/Baggy.pod
Expand Up @@ -69,7 +69,18 @@ weights, i.e. L<Bag> and L<BagHash>.
=head2 method elems
=comment TODO
Defined as:
method elems(Baggy:D:) returns Int:D
Returns the number of elements in the C<Baggy> object without
taking the individual elements weight into account.
my $breakfast = bag <eggs spam spam spam>;
say $breakfast.elems; # 2
my $n = ("b" => 9.4, "b" => 2).MixHash;
say $n.elems; # 1
=head2 method total
Expand Down

0 comments on commit 2bd9117

Please sign in to comment.