Skip to content

Commit 4afe7dd

Browse files
committed
doc Any.Bag and Any.BagHash
1 parent 84fbe82 commit 4afe7dd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

doc/Type/Any.pod6

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,24 @@ You can also use C<$> as item contextualizer.
255255
say $[1,2,3].perl; # OUTPUT: «$[1, 2, 3]␤»
256256
say $("abc").perl; # OUTPUT: «"abc"␤»
257257
258+
=head2 method Bag
259+
260+
Defined as:
261+
262+
method Bag(--> Bag:D) is nodal
263+
264+
Coerce the invocant to L<Bag|/type/Bag>, whereby C<Positionals> are treated as
265+
lists of values.
266+
267+
=head2 method BagHash
268+
269+
Defined as:
270+
271+
method BagHash(--> BagHash:D) is nodal
272+
273+
Coerce the invocant to L<BagHash|/type/BagHash>, whereby C<Positionals> are
274+
treated as lists of values.
275+
258276
=end pod
259277

260278
# vim: expandtab shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)