Skip to content

Commit

Permalink
Minor massaging, mostly to links
Browse files Browse the repository at this point in the history
  • Loading branch information
skids committed Jan 18, 2016
1 parent a70059b commit 3e3a649
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions doc/Language/list.pod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ an elegant system for handling them.
=head1 Literal Lists
Literal L<C<List>s|/type/List>> are created with commas B<not> with
Literal L<C<List>s|/type/List> are created with commas B<not> with
parentheses, so:
1,2 # This is two-element list
Expand Down Expand Up @@ -157,8 +157,8 @@ to put an infinite list, lest your program hang and, eventually, run out of memo
=head2 Flattening "Context"
When you have a list that contains sub-lists, but you only want one flat list,
you may flatten the list to produce a sequence of values as if all parentheses.
This works no matter how many levels deep the parenthesis are nested.
you may flatten the list to produce a sequence of values as if all parentheses
were removed. This works no matter how many levels deep the parenthesis are nested.
say (1,(2,(3,4)),5).flat eqv (1,2,3,4,5) # says True
Expand All @@ -184,7 +184,7 @@ syntax rules are at play: the list is immediately converted into a
C<Capture>. A C<Capture> itself has a List (C<.list>) and a Hash (C<.hash>).
Any C<Pair> literals whose keys are not quoted, or which are not parenthesized,
never make it into C<.list>. Instead, they are considered to be named
arguments and squashed into C<.hash>. See the page on L<C<Capture>|types/Capture>
arguments and squashed into C<.hash>. See the L<page on C<Capture>|/types/Capture>
for the details of this processing.
Consider the following ways to make a new C<Array> from a C<List>. These ways
Expand Down
4 changes: 2 additions & 2 deletions doc/Type/Scalar.pod
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ There is, however, one important place where C<Scalar>s have a visible
impact: a C<Scalar> will shield its contents from flattening by most
Perl 6 core list operations.
A <$>-sigiled variable may be bound directly to a value with no
A C<$>-sigiled variable may be bound directly to a value with no
intermediate C<Scalar> using the binding operator C<:=>. You can
tell if this has been done by examining the introspective pseudo-method
C<.VAR>:
Expand Down Expand Up @@ -78,7 +78,7 @@ variables.
c.WHAT.say; # says "(Int)"
c.VAR.WHAT.say; # says "(Int)"
my $a = 1;
my \d = $a; # just my \d = $ = 1 works, too
my \d = $a; # just "my \d = $ = 1" works, too
d.WHAT.say; # says "(Int)"
d.VAR.WHAT.say; # says "(Scalar)"
d = 2; # ok
Expand Down

0 comments on commit 3e3a649

Please sign in to comment.