Skip to content

Commit 535144c

Browse files
committed
Re-indexes adding 'Basics' many terms. Closes #2165
1 parent 1775e07 commit 535144c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/Language/101-basics.pod6

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ Dave has won 2 matches and 6 sets
7070
Charlie has won 1 matches and 4 sets
7171
Beth has won 1 matches and 4 sets
7272
73-
=head3 X<C<v6>>
73+
=head3 X<C<v6>|v6 (Basics)>
7474
7575
Every Perl 6 program should begin with C<use v6;>. This line tells the compiler
7676
which version of Perl the program expects. Should you accidentally run the file
7777
with Perl 5, you'll get a helpful error message.
7878
79-
=head3 X<C<statement>>
79+
=head3 X<C<statement>|statement (Basics)>
8080
8181
A Perl 6 program consists of zero or more statements. A I<statement> ends with
8282
a semicolon or a curly bracket at the end of a line:
@@ -93,7 +93,7 @@ block, it's visible throughout the remainder of the file (which would
9393
effectively be the enclosing block). A block is any part of the code enclosed
9494
between curly braces C<{ }>.
9595
96-
=head3 X<C<sigil>> and X<C<identifier>>
96+
=head3 X<C<sigil>> and X<C<identifier>|identifier (Basics)>
9797
9898
A variable name begins with a I<sigil>, which is a non-alpha-numeric
9999
symbol such as C<$>, C<@>, C<%>, or C<&>--or occasionally the double
@@ -132,7 +132,7 @@ it's the argument provided to C<open>.
132132
my @names = $file.get.words;
133133
=end code
134134
135-
=head3 X<C<array>>, X<C<method>> and X<C<invocant>>
135+
=head3 X<C<array>>, X<C<method>|method (Basics)> and X<C<invocant>|invocant (Basics)>
136136
137137
The right-hand side calls a I<method> --a named group of behavior-- named C<get>
138138
on the filehandle stored in C<$file>. The C<get> method reads and returns
@@ -172,7 +172,7 @@ of these hashes are indexed by the player's name.
172172
}
173173
=end code
174174
175-
=head3 X<C<for>> and X<C<block>>
175+
=head3 X<C<for>|for (Basics)> and X<C<block>>
176176
177177
C<for> produces a loop that runs the I<block> delimited by curly brackets
178178
once for each item of the list, setting the variable C<$line>
@@ -240,7 +240,7 @@ The C<+=> assignment operator is a shortcut for:
240240
%sets{$p2} = %sets{$p2} + $r2;
241241
=end code
242242
243-
=head3 X<C<Any>> and X<C<+=>>
243+
=head3 X<C<Any>| Any (Basics)> and X<C<+=>>
244244
245245
C<+= $r1> means I<increase the value in the variable on the left by $r1>. In
246246
the first iteration C<%sets{$p1}> is not yet set, so it defaults to a special
@@ -291,7 +291,7 @@ names. The C<sort> method's argument is a I<block> used to transform the array
291291
elements (the names of players) to the data by which to sort. The array items
292292
are passed in through the I<topic variable> C<$_>.
293293
294-
=head3 X<C<block>>
294+
=head3 X<C<block>|block (Basics)>
295295
296296
You have seen blocks before: both the C<for> loop C<< -> $line { ... } >> and
297297
the C<if> statement worked on blocks. A block is a self-contained piece of
@@ -326,7 +326,7 @@ on the result of the second sort, and stores the final list in C<@sorted>.
326326
}
327327
=end code
328328
329-
=head3 X<C<say>>, X<C<print>> and X<C<put>>
329+
=head3 X<C<say>| say (Basics)>, X<C<print>| say (Basics)> and X<C<put>|put (Basics)>
330330
331331
To print out the players and their scores, the code loops over C<@sorted>,
332332
setting C<$n> to the name of each player in turn. Read this code as "For each
@@ -394,7 +394,7 @@ followed by a postcircumfix -- a bracketing pair that follows a
394394
statement. It's also ok to have a method call between the variable name and
395395
the postcircumfix.
396396
397-
=head3 X<C<Zen slice>>
397+
=head3 X<C<Zen slice>| Zen slice (Basics)>
398398
399399
=begin code
400400
my @flavours = <vanilla peach>;

0 commit comments

Comments
 (0)