@@ -145,14 +145,14 @@ sub MAIN(
145
145
write-index-files;
146
146
147
147
say ' Writing per-routine files ...' ;
148
- for $ * DR . lookup(' routine' , : by<kind >). uniq (: as{. name }) -> $ d {
148
+ for $ * DR . lookup(' routine' , : by<kind >). unique (: as{. name }) -> $ d {
149
149
write-routine-file($ d . name );
150
150
print ' .'
151
151
}
152
152
say ' ' ;
153
153
154
154
say ' Writing per-syntactic-feature files ...' ;
155
- for $ * DR . lookup(' syntax' , : by<kind >). uniq (: as{. name }). list -> $ d {
155
+ for $ * DR . lookup(' syntax' , : by<kind >). unique (: as{. name }). list -> $ d {
156
156
write-syntax-file($ d . name );
157
157
print ' .'
158
158
}
@@ -422,7 +422,7 @@ sub find-definitions (:$pod, :$origin, :$min-level = -1) {
422
422
# Determine proper subkinds
423
423
my Str @ subkinds = first-code-block($ chunk )\
424
424
. match (: g, /:s ^ 'multi' ? (sub| method)» /)\
425
- .>> [0 ]>>. Str . uniq ;
425
+ .>> [0 ]>>. Str . unique ;
426
426
427
427
note " The subkinds of routine $ created. name () in $ origin. name () cannot be determined."
428
428
unless @ subkinds ;
@@ -446,8 +446,8 @@ sub find-definitions (:$pod, :$origin, :$min-level = -1) {
446
446
447
447
sub write-type-graph-images (: $ force ) {
448
448
unless $ force {
449
- my $ dest = ' html/images/type-graph-Any.svg' . path ;
450
- if $ dest . e && $ dest . modified >= ' type-graph.txt' . path . modified {
449
+ my $ dest = ' html/images/type-graph-Any.svg' . IO ;
450
+ if $ dest . e && $ dest . modified >= ' type-graph.txt' . IO . modified {
451
451
say " Not writing type graph images, it seems to be up-to-date" ;
452
452
say " To force writing of type graph images, supply the --typegraph" ;
453
453
say " option at the command line, or delete" ;
@@ -530,7 +530,7 @@ sub write-search-file () {
530
530
@ items . push : $ * DR . lookup(' type' , : by<kind >). sort (*. name ). map ({
531
531
qq [ \{ label: "Type: { . name } ", value: "{ . name } ", url: "{ . url} " \} ]
532
532
});
533
- @ items . push : $ * DR . lookup(' routine' , : by<kind >). uniq (: as{. name }). sort (*. name ). map ({
533
+ @ items . push : $ * DR . lookup(' routine' , : by<kind >). unique (: as{. name }). sort (*. name ). map ({
534
534
do for . subkinds // ' Routine' -> $ subkind {
535
535
qq [ \{ label: "{ $ subkind . tclc } : { escape . name } ", value: "{ escape . name } ", url: "{ . url} " \} ]
536
536
}
@@ -639,7 +639,7 @@ sub write-main-index(:$kind, :&summary = {Nil}) {
639
639
pod-table($ * DR . lookup($ kind , : by<kind >)\
640
640
. categorize (*. name ). sort (*. key )>>. value \
641
641
. map ({[
642
- . map ({. subkinds // Nil }). uniq . join (' , ' ),
642
+ . map ({. subkinds // Nil }). unique . join (' , ' ),
643
643
pod-link(. [0 ]. name , . [0 ]. url),
644
644
. & summary
645
645
]})
@@ -656,7 +656,7 @@ sub write-sub-index(:$kind, :$category, :&summary = {Nil}) {
656
656
. grep ({$ category ⊆ . categories})\ # XXX
657
657
. categorize (*. name ). sort (*. key )>>. value \
658
658
. map ({[
659
- . map ({. subkinds // Nil }). uniq . join (' , ' ),
659
+ . map ({. subkinds // Nil }). unique . join (' , ' ),
660
660
pod-link(. [0 ]. name , . [0 ]. url),
661
661
. & summary
662
662
]})
0 commit comments