Skip to content

Commit 3e2bdbd

Browse files
author
Jan-Olof Hendig
committed
Added docs for Baggy.SetHash
1 parent 4aee715 commit 3e2bdbd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/Type/Baggy.pod

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,19 @@ Returns a L<Set|/type/Set> whose elements are the L<keys|#method keys> of the in
259259
my $breakfast = (eggs => 2, bacon => 3).BagHash;
260260
say $breakfast.Set; # set(bacon, eggs)
261261
262+
=head2 method SetHash
263+
264+
Defined as:
265+
266+
method SetHash() returns SetHash:D
267+
268+
Returns a L<SetHash|/type/SetHash> whose elements are the L<keys|#method keys> of the invocant.
269+
270+
my $breakfast = (eggs => 2, bacon => 3).BagHash;
271+
my $sh = $breakfast.SetHash;
272+
say $sh.WHAT; # (SetHash)
273+
say $sh.elems; # 2
274+
262275
=head2 method ACCEPTS
263276
264277
=comment TODO

0 commit comments

Comments
 (0)