Skip to content

Commit

Permalink
Some reflow and corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Feb 19, 2019
1 parent 832eac7 commit f5d17a2
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions doc/Type/Any.pod6
Expand Up @@ -316,20 +316,21 @@ Interprets the invocant as a list, and returns the last index of that list.
Defined as:
method pairup(--> Seq:D) is nodal
proto method pairup(|) is nodal
multi method pairup(Any:U:)
multi method pairup(Any:D:)
Interprets the invocant as a list, and constructs a list of
L<pairs|/type/Pair> from it, in the same way that assignment to a
L<Hash|/type/Hash> does. That is, it takes two consecutive elements and
constructs a pair from them, unless the item in the key position already is a
pair (in which case the pair is passed through, and the next list item, if any,
is considered to be a key again).
is considered to be a key again). It returns a C<Seq> of C<Pair>s.
say (a => 1, 'b', 'c').pairup.perl; # OUTPUT: «(:a(1), :b("c")).Seq␤»
=head2 sub item
X<|$ (item contextualizer)>
=head2 sub item
Defined as:
Expand All @@ -355,15 +356,16 @@ Defined as:
method Array(--> Array:D) is nodal
Coerces the invocant to L<Array|/type/Array>.
Coerces the invocant to an L<Array|/type/Array>.
=head2 method List
Defined as:
method List(--> List:D) is nodal
Coerces the invocant to L<List|/type/List>, using the L<list|/routine/list> method.
Coerces the invocant to L<List|/type/List>, using the L<list|/routine/list>
method.
=head2 serial
Expand All @@ -376,7 +378,7 @@ Returns the self-reference to the instance itself:
=begin code
my $b; # defaults to Any
say $b.serial.^name; # OUTPUT: Any
say $b.serial.^name; # OUTPUT: «Any␤»
=end code
=head2 method Hash
Expand All @@ -393,11 +395,11 @@ Coerces the invocant to L<Hash|/type/Hash>.
Defined as:
proto method hash(|) is nodal
multi method hash(Any:U: --> Hash:D)
multi method hash(Any:D: --> Hash:D)
multi method hash(Any:U:)
multi method hash(Any:D:)
When called on a type object, returns an empty L<Hash|/type/Hash>. On instances,
equivalent to assigning the invocant to a C<%->sigilled variable and
it is equivalent to assigning the invocant to a C<%->sigilled variable and
returning that.
Subclasses of C<Any> may choose to return any I<core> type that does the
Expand Down Expand Up @@ -435,8 +437,8 @@ Defined as:
method Bag(--> Bag:D) is nodal
Coerces the invocant to L<Bag|/type/Bag>, whereby L<Positionals|/type/Positional>
are treated as lists of values.
Coerces the invocant to L<Bag|/type/Bag>, whereby
L<Positionals|/type/Positional> are treated as lists of values.
=head2 method BagHash
Expand Down

0 comments on commit f5d17a2

Please sign in to comment.