Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added docs for Baggy.keys. #perl6++ for reviewing
  • Loading branch information
Jan-Olof Hendig committed Jun 10, 2016
1 parent 8ebabd4 commit 0d7aab4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion doc/Type/Baggy.pod
Expand Up @@ -41,7 +41,18 @@ L<Mixy>.
=head2 method keys
=comment TODO
Defined as:
method keys(Baggy:D:) returns List:D
Returns a list of all keys in the C<Baggy> object without taking
their individual weights into account as opposed to L<kxxv|#method kxxv>.
my $breakfast = bag <eggs spam spam spam>;
say $breakfast.keys.sort; # (eggs spam)
my $n = ("a" => 5, "b" => 2).BagHash;
say $n.keys.sort; # (a b)
=head2 method values
Expand Down

0 comments on commit 0d7aab4

Please sign in to comment.