Skip to content

Commit

Permalink
fix Any.list|push
Browse files Browse the repository at this point in the history
  • Loading branch information
gfldex committed Feb 19, 2017
1 parent 80d01ab commit ac7659b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/Type/Any.pod6
Expand Up @@ -82,13 +82,21 @@ C<none>-L<Junction|/type/Junction> from it.
=head2 method list
Defined as:
method list(--> List:D)
Interprets the invocant as a list, and returns that L<List|/type/List>.
say 42.list.^name; # OUTPUT: «List␤»
say 42.list.elems; # OUTPUT: «1␤»
=head2 method push
Defined as:
method push(|values --> Positional:D)
The method push is defined for undefined invocants and allows for
autovivifying undefined to an empty C<Array>, unless the undefined value
implements C<Positional> already. The argument provided will then be pushed
Expand Down

0 comments on commit ac7659b

Please sign in to comment.