Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added docs for Baggy.kxxv
  • Loading branch information
Jan-Olof Hendig committed Jun 7, 2016
1 parent 5a51785 commit 995ac3b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/Type/Baggy.pod
Expand Up @@ -51,6 +51,22 @@ L<Mixy>.
=comment TODO
=head2 method kxxv
Defined as:
method kxxv(Baggy:D:) returns List:D
Returns a list of the keys of the invocant, with each key multiplied by its
weight. Note that C<kxxv> only works for C<Baggy> types which have integer
weights, i.e. L<Bag> and L<BagHash>.
my $breakfast = bag <spam eggs spam spam bacon>;
say $breakfast.kxxv.sort; # (bacon eggs spam spam spam)
my $n = ("a" => 0, "b" => 1, "b" => 2).BagHash;
say $n.kxxv; # (b b b)
=head2 method elems
=comment TODO
Expand Down

0 comments on commit 995ac3b

Please sign in to comment.