Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created June 10, 2016 18:24
Show Gist options
  • Save dogbert17/acbbd419534b528ca29bfacf4402ac81 to your computer and use it in GitHub Desktop.
Save dogbert17/acbbd419534b528ca29bfacf4402ac81 to your computer and use it in GitHub Desktop.
Attempt to document Baggy.keys
=head2 method keys
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; # (spam eggs)
my $n = ("a" => 0, "b" => 2).BagHash;
say $n.keys; # (b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment