@@ -92,7 +92,7 @@ L<junctions|#Junction>. C<Any> itself derives from L<#Mu>.
92
92
= head1 any()
93
93
94
94
A function generating a L < junction|#Junction > with "or" semantics (aka,
95
- L < #True > if any of its values are C < True > .
95
+ L < #True > if any of its values are C < True > . See also L < any|/routine/any > .
96
96
97
97
= head1 API
98
98
@@ -157,9 +157,9 @@ L<class|#Class>:
157
157
158
158
= head1 Autothreading
159
159
160
- Autothreading is what happens if you pass a L < Junction|/type/ Junction > to
161
- a subroutine that expects a parameter of type C < Any > or a subtype thereof
162
- (such as anything L < Cool|/type/ Cool> ). The call is then executed for each
160
+ Autothreading is what happens if you pass a L < Junction|# Junction > to
161
+ a subroutine that expects a parameter of type L < # Any> or a subtype thereof
162
+ (such as anything L < # Cool> ). The call is then executed for each
163
163
value of the junction. The result of these calls is assembled in a new
164
164
junction of the same type as the original junction.
165
165
@@ -182,6 +182,14 @@ values in the junction are True.
182
182
say 'success';
183
183
}
184
184
185
+ = head1 Callable
186
+
187
+ = head1 Camelia
188
+
189
+ = head1 camelia
190
+
191
+ = head1 Class
192
+
185
193
= head1 Colon Pair and Colon List
186
194
187
195
A colon pair is a shorthand syntax used to create or visually present
@@ -231,18 +239,30 @@ referred to as a "type constraint."
231
239
Note that you can elso differentiate candidates in a
232
240
L < multi-dispatch|#Multi-Dispatch > by using a different constraint:
233
241
234
- multi sub abbreviate(Str $thing where { .chars >= 10 }) {
235
- "$thing.substr(0,10 )..."
242
+ multi sub abbreviate(Str $thing where { .chars > 10 }) {
243
+ "$thing.substr(0,7 )..."
236
244
}
237
245
multi sub abbreviate(Str $thing) { $thing } # no constraint
238
246
239
- say abbreviate("Worthington"; # Worthingto ...
247
+ say abbreviate("Worthington"; # Worthin ...
240
248
say abbreviate("Mäsak"); # Mäsak
241
249
250
+ = head1 Cool
251
+
252
+ = head1 dalek
253
+
254
+ = head1 Enum
255
+
256
+ = head1 Exegesis
257
+
258
+ = head1 False
259
+
242
260
= head1 Field
243
261
244
262
See L < #Attribute > .
245
263
264
+ = head1 Grammar
265
+
246
266
= head1 Instance
247
267
248
268
An I < instance > of a class is also called an I < object > in some other
@@ -271,6 +291,8 @@ C<defined($instance)> is C<True>.
271
291
To put things another way, a class contains the blueprints of methods and
272
292
attributes, and an instance carries it into the real world.
273
293
294
+ = head1 Interface
295
+
274
296
= head1 IRC
275
297
276
298
Internet Relay Chat. Perl 6 developers and users usually hang out on the
@@ -409,7 +431,7 @@ No Such Thing
409
431
410
432
= head2 Opt
411
433
412
- Short for "optimization", usually in either the context of L < # spesh> or
434
+ Short for "optimization", usually in either the context of L < spesh|#Spesh > or
413
435
L < #JIT > .
414
436
415
437
= head2 PB
@@ -487,6 +509,12 @@ in Perl 6. It is what C<self> refers to in a method.
487
509
class A { method show { self } }
488
510
say A.new.show; # A.new
489
511
512
+ = head2 JIT
513
+
514
+ = head1 Junction
515
+
516
+ = head1 List
517
+
490
518
= head1 Literal
491
519
492
520
A I < literal > is a piece of code that directly stands for an (often built-in)
@@ -536,14 +564,24 @@ The C<mainline> is the program text that is not part of any kind of block.
536
564
f(); # in mainline again
537
565
538
566
You can also have the mainline of any package-like declarator, such as
539
- C < class > , C < module > , C < grammar > , etc. These are typically run just after
540
- the class/module/grammar have been compiled (or when loaded from a
541
- pre-compiled file).
567
+ L < class|#class > , L < module|#Module > , L < grammar|#Grammar > , etc. These are
568
+ typically run just after the class/module/grammar have been compiled (or
569
+ when loaded from a pre-compiled file).
542
570
543
571
= head1 Member
544
572
545
573
See L < #Attribute > .
546
574
575
+ = head1 Method
576
+
577
+ = head1 Module
578
+
579
+ = head1 Mu
580
+
581
+ = head1 Multi-Dispatch
582
+
583
+ = head1 Package
584
+
547
585
= head1 Parameter
548
586
549
587
L < Parameter|/type/Parameter > is a class to define parameters to
@@ -558,6 +596,17 @@ you specify when calling a subroutine/method/callable block.
558
596
559
597
See L < #Attribute > .
560
598
599
+ = head1 Rakudo
600
+
601
+ = head1 Role
602
+
603
+ = head1 rvalue
604
+
605
+ A value that can be used on the right hand side of an assignment. See also
606
+ L < #lvalue > .
607
+
608
+ = head1 Sigil
609
+
561
610
= head1 Slot
562
611
563
612
See L < #Attribute > .
@@ -577,10 +626,25 @@ This can also be used to collect all possible named parameters in a call:
577
626
sub allnameds(*%named) { .say for %named.sort }
578
627
allnameds a => 42, :666b, :c<foo>; # a => 42, b => 666, c => foo
579
628
629
+ = head1 Spesh
630
+
631
+ = head1 Stub
632
+
633
+ = head1 Subroutine
634
+
635
+ = head1 Synopsis
636
+
637
+ = head1 TimToady
638
+
639
+ = head1 True
640
+
641
+ = head1 Twigil
642
+
580
643
= head1 Type Object
581
644
582
- A I < type object > is an object representing a class, role, package, grammar
583
- or enum. It is generally accessible with the same name as the type.
645
+ A I < type object > is an object representing a L < class|#Class > , L < role|#Role > ,
646
+ L < package|#Package > , L < grammar|#Grammar > or L < enum|#Enum > . It is generally
647
+ accessible with the same name as the type.
584
648
585
649
class A { };
586
650
say A; # A is the type object
@@ -603,4 +667,14 @@ languages:
603
667
# perl6 -e 'my Int $a; sub f(Int $x) { $x + 1 }; f($a);'
604
668
Invocant requires an instance, but a type object was passed
605
669
670
+ = head1 yoleaux
671
+
672
+ = head1 $
673
+
674
+ = head1 @
675
+
676
+ = head1 %
677
+
678
+ = head1 &
679
+
606
680
= end pod
0 commit comments