Skip to content

Commit 13d0a8d

Browse files
committed
Changes case in Defined As
And also checks that cache has already been (well) defined in `Any`, so it closes #1507
1 parent b781985 commit 13d0a8d

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

doc/Type/Any.pod6

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ L«C<.list>|/routine/list» method, and then to a L<Supply>.
473473
474474
=head2 method min
475475
476-
Defined As:
476+
Defined as:
477477
478478
multi method min(--> Any:D)
479479
multi method min(&filter --> Any:D)
@@ -489,7 +489,7 @@ original value. The original value is still the one returned from C<min>.
489489
490490
=head2 method max
491491
492-
Defined As:
492+
Defined as:
493493
494494
multi method max(--> Any:D)
495495
multi method max(&filter --> Any:D)
@@ -505,7 +505,7 @@ original value. The original value is still the one returned from C<max>.
505505
506506
=head2 method minmax
507507
508-
Defined As:
508+
Defined as:
509509
510510
multi method minmax(--> Range:D)
511511
multi method minmax(&filter --> Range:D)
@@ -522,7 +522,7 @@ Range.
522522
523523
=head2 method minpairs
524524
525-
Defined As:
525+
Defined as:
526526
527527
multi method minpairs(Any:D: --> Seq:D)
528528
@@ -535,7 +535,7 @@ L«C<cmp> operator|/routine/cmp»:
535535
536536
=head2 method maxpairs
537537
538-
Defined As:
538+
Defined as:
539539
540540
multi method maxpairs(Any:D: --> Seq:D)
541541
@@ -548,7 +548,7 @@ L«C<cmp> operator|/routine/cmp»:
548548
549549
=head2 method keys
550550
551-
Defined As:
551+
Defined as:
552552
553553
multi method keys(Any:U: --> List)
554554
multi method keys(Any:D: --> List)
@@ -559,7 +559,7 @@ For defined L<Any> returns its L<keys> after calling C<list> on it, otherwise ca
559559
560560
=head2 method flatmap
561561
562-
Defined As:
562+
Defined as:
563563
564564
method flatmap(Any:U: &code --> Seq)
565565
@@ -573,7 +573,7 @@ In the case of L<Any>, C<Any.list> returns a 1-item list, as is shown.
573573
574574
=head2 method roll
575575
576-
Defined As:
576+
Defined as:
577577
578578
multi method roll(--> Any)
579579
multi method roll($n --> Seq)
@@ -587,7 +587,7 @@ L«C<List.roll>|/type/List#routine_roll» on it.
587587
588588
=head2 method pick
589589
590-
Defined As:
590+
Defined as:
591591
592592
multi method pick(--> Any)
593593
multi method pick($n --> Seq)
@@ -601,7 +601,7 @@ L«C<List.pick>|/type/List#routine_pick» on it.
601601
602602
=head2 method skip
603603
604-
Defined As:
604+
Defined as:
605605
606606
multi method skip(--> Seq)
607607
multi method skip($n --> Seq)
@@ -616,7 +616,7 @@ L«C<Seq.skip>|/type/Seq#method_skip» on it.
616616
617617
=head2 method prepend
618618
619-
Defined As:
619+
Defined as:
620620
621621
multi method prepend(--> Array)
622622
multi method prepend(@values --> Array)
@@ -632,7 +632,7 @@ L«C<Array.prepend>|/type/Array#method_prepend» on it.
632632
633633
=head2 method unshift
634634
635-
Defined As:
635+
Defined as:
636636
637637
multi method unshift(--> Array)
638638
multi method unshift(@values --> Array)
@@ -648,7 +648,7 @@ L«C<Array.unshift>|/type/Array#routine_unshift» on it.
648648
649649
=head2 method first
650650
651-
Defined As:
651+
Defined as:
652652
653653
method first(Mu $matcher?, :$k, :$kv, :$p, :$end)
654654
@@ -659,7 +659,7 @@ L«C<List.first>|/type/List#routine_first» on it.
659659
660660
=head2 method unique
661661
662-
Defined As:
662+
Defined as:
663663
664664
method unique(:&as, :&with --> Seq:D)
665665
@@ -670,7 +670,7 @@ L«C<List.unique>|/type/List#routine_unique» on it.
670670
671671
=head2 method repeated
672672
673-
Defined As:
673+
Defined as:
674674
675675
method repeated(:&as, :&with --> Seq)
676676
@@ -681,7 +681,7 @@ L«C<List.repeated>|/type/List#routine_repeated» on it.
681681
682682
=head2 method squish
683683
684-
Defined As:
684+
Defined as:
685685
686686
method squish(:&as, :&with --> Seq)
687687
@@ -693,7 +693,7 @@ L«C<List.squish>|/type/List#routine_squish» on it.
693693
694694
=head2 method permutations
695695
696-
Defined As:
696+
Defined as:
697697
698698
method permutations(--> Seq)
699699
@@ -704,7 +704,7 @@ L«C<List.permutations>|/type/List#routine_permutations» on it.
704704
705705
=head2 method categorize
706706
707-
Defined As:
707+
Defined as:
708708
709709
method categorize(&mapper --> Hash:D)
710710
@@ -715,7 +715,7 @@ L«C<List.categorize>|/type/List#routine_categorize» on it.
715715
716716
=head2 method classify
717717
718-
Defined As:
718+
Defined as:
719719
720720
method classify(&mapper -->Hash:D)
721721
@@ -729,7 +729,7 @@ L«C<List.classify>|/type/List#routine_classify» on it.
729729
730730
=head2 method pairs
731731
732-
Defined As:
732+
Defined as:
733733
734734
multi method pairs(Any:U: -->List)
735735
multi method pairs(Any:D: -->List)
@@ -747,7 +747,7 @@ and calls L<List.pairs|/type/List#routine_pairs> on it:
747747
748748
=head2 method antipairs
749749
750-
Defined As:
750+
Defined as:
751751
752752
multi method antipairs(Any:U: -->List)
753753
multi method antipairs(Any:D: -->List)
@@ -764,7 +764,7 @@ it returns an empty L<List>:
764764
765765
=head2 method kv
766766
767-
Defined As:
767+
Defined as:
768768
769769
multi method kv(Any:U: -->List)
770770
multi method kv(Any:D: -->List)
@@ -870,7 +870,7 @@ setting C<:$off> to a C<True> value affects when first tester is discarded:
870870
871871
=head2 method tree
872872
873-
Defined As:
873+
Defined as:
874874
875875
method tree(--> Any)
876876
@@ -896,7 +896,7 @@ complex, multi-level, data structures.
896896
897897
=head2 method nl-out
898898
899-
Defined As:
899+
Defined as:
900900
901901
method nl-out(--> Str)
902902
@@ -908,7 +908,7 @@ details.
908908
909909
=head2 method invert
910910
911-
Defined As:
911+
Defined as:
912912
913913
method invert(--> List)
914914
@@ -918,7 +918,7 @@ Returns an empty List.
918918
919919
=head2 method combinations
920920
921-
Defined As:
921+
Defined as:
922922
923923
method combinations(--> Seq)
924924
@@ -929,7 +929,7 @@ L«C<List.combinations>|/type/List#routine_combinations» on it.
929929
930930
=head2 method iterator
931931
932-
Defined As:
932+
Defined as:
933933
934934
method iterator(--> Iterator)
935935
@@ -942,7 +942,7 @@ L«C<iterator>|/type/Iterable#method_iterator» on it.
942942
943943
=head2 method grep
944944
945-
Defined As:
945+
Defined as:
946946
947947
method grep(Mu $matcher, :$k, :$kv, :$p, :$v --> Seq)
948948
@@ -957,7 +957,7 @@ Based on C<$matcher> value can be either C<((Any))> or empty List.
957957
958958
=head2 method append
959959
960-
Defined As:
960+
Defined as:
961961
962962
proto method append(|) is nodal {*}
963963
multi method append(Any:U \SELF: |values --> Array)
@@ -975,15 +975,15 @@ the array obtained calling L«C<Array.append>|/type/Array#method_append» on it.
975975
976976
=head2 method values
977977
978-
Defined As:
978+
Defined as:
979979
980980
method values(--> List)
981981
982982
Returns an empty List.
983983
984984
=head2 method collate
985985
986-
Defined As:
986+
Defined as:
987987
988988
method collate(--> Seq)
989989
@@ -997,11 +997,11 @@ my %hash = 'aa' => 'value', 'Za' => 'second';
997997
say %hash.collate; # (aa => value Za => second);
998998
=end code
999999
1000-
C<collate> behavior can be changed by using the (so far experimental) L<C<$*COLLATION>|/language/experimental#index-entry-%24%2ACOLLATION-%24%2ACOLLATION> dynamic variable. Please refer to its description in the L<experimental features page|/language/experimental> for further information.
1000+
C<collate> behavior can be changed by using the (so far experimental) L<C<$*COLLATION>|/language/experimental#index-entry-%24%2ACOLLATION-%24%2ACOLLATION> dynamic variable. Please refer to its description in the L<experimental features page|/language/experimental> for further information.
10011001
10021002
=head2 method cache
10031003
1004-
Defined As:
1004+
Defined as:
10051005
10061006
method cache(--> List)
10071007
@@ -1010,7 +1010,7 @@ the method C<list> on the instance.
10101010
10111011
=head2 method batch
10121012
1013-
Defined As:
1013+
Defined as:
10141014
10151015
multi method batch(Int:D $batch --> Seq)
10161016
multi method batch(Int:D :$elems --> Seq)

0 commit comments

Comments
 (0)